Questions tagged [memory-optimized-tables]
Memory Optimized Tables typically refer to tables where the rows in the table are stored in the server's RAM.
98
questions
0
votes
1
answer
45
views
Are there any special considerations for a log-shipping role change when the database has memory optimzed files?
We're noticing a problem with our log-shipping setups when the database contains a memory-optimized file. Specifically, after changing the primary/secondary roles, restoring log backups taken after ...
0
votes
1
answer
89
views
SQL Server 2017 freezing during bulk insert of large file into in-memory staging table
Running SQL Server 2017 CU20 Standard on a dedicated Dell PowerEdge with 28 cores and 192GB of RAM.
I have a stored procedure that processes large files (~7GB each) in a loop by bulk inserting them ...
1
vote
1
answer
142
views
Can I downgrade from SQL Server 2017 CU25 to CU20?
New instance of SQL Server 2017. I chose to install up to CU25 during the initial installation. Been using the database for a few months, but it seems to have a memory leak when using memory-optimized ...
1
vote
0
answers
83
views
Bogus SQL Server (XTP) in-memory error 41842 claiming 4B rows updated [closed]
We run a large, very active set of in-memory (schema-only) tables - the main table has been split (sharded) into 5 separate databases because the table is a total size of > 50gb (Standard Edition ...
0
votes
0
answers
44
views
Unable to Create In-Memory OLTP File on AWS FSX
Here’s an example SQL statement to add a memory optimized file. This works fine in a non-clustered environment, but fails in a clustered environment with FSx backing storage.
USE [master]
GO
-- Memory ...
2
votes
2
answers
468
views
SQL Server 2016 database backup fails to restore on SQL Server 2019
We were trying to restore the database from SQL Server 2016 Developer Edition to SQL Server 2019 Developer Edition and it was failing with an exception.
Details about this DB:
It has in-memory ...
0
votes
1
answer
37
views
Sql Server consuming lot of memory Creating Bottleneck for my web application Hosted in the same server
HI I have a server with 64 GB Ram and I have assigned around 52GB to the SQl Server itself. However Even this has effected the performance of the server and the web application hosted in the same ...
19
votes
2
answers
2k
views
SQL Server in-memory optmized tempdb metadata memory usage continually growing
Problem
We have enabled sp_configure 'tempdb metadata memory-optimized' = 1, and now the tempdb meta data is taking over 400 GB on one of our servers and continues to grow. There are some drops in ...
5
votes
1
answer
186
views
Memory Optimized intermittently very slow perfomance
I have a memory optimized table with (in my test) 10 million rows. Running some UPDATE in parallel against it, I get intermittent spikes in CPU and huge spikes in execution time (>1s from 1ms) of ...
4
votes
2
answers
135
views
In-Memory OLTP SQL Server 2016 - insufficient system memory
I am trying to place an In-Memory OLTP table,
Here is the memory estimate you will need:
But when the migration starts, the following error message is displayed:
The size of my table is ...
1
vote
2
answers
104
views
What is the best practice location for Memorize Optimization (OLTP) files?
Best practices for log and mdf files is to split across drives (e.g. G:\SQL Data & I:\SQL Logs).
What are the best practices for memory optimization files? Should they reside on their own drive? ...
1
vote
1
answer
360
views
Accessing Memory Optimised Tables Under Snapshot Isolation
We have a high traffic database, that I am looking to convert to using IM-OLTP for performance gains.
Due to the large size of the table in question, I'm looking to do a hot/cold solution, with a view ...
1
vote
1
answer
73
views
How to enable INMEMORY JOIN GROUP in Oracle 12.2
I have read official Oracle documentation on INMEMORY JOIN GROUP and run code from their tutorials. However I unable to successfully create INMEMORY JOIN GROUP.
Installed database is Oracle 12.2
...
1
vote
1
answer
205
views
Defining OLAP or OLTP on table level in Oracle/postgres/SQLserver
Usually companies have separate databases for OLTP and OLAP (Row stores and column stores) where data is loaded through ETL jobs to another database for analytical processing. I am particularly ...
0
votes
1
answer
177
views
Change bucket count for Primary Key Nonclustered Hash on existing In-Memory table
I'm on SQL Server 2019 Enterprise edition. I have a table with this definition
CREATE TABLE dbo.MyMemoryTable
(
FirstId int NOT NULL,
SecondId int NOT NULL,
MyCount int NOT NULL,
...
0
votes
1
answer
146
views
In Memory OLTP causing OOM Issue in SQL Server even though no data in In Memory OLTP Table
We have only 1 memory optimized table in each database and there are total 10 databases as such. This table is completely empty. But still we can see in DBCC MEMORYSTATUS Output that In memory OLTP is ...
4
votes
2
answers
289
views
Cannot reclaim Index Unused Memory in In-Memory OLTP
Steps to reproduce the problem
Create a database with memory-optimized filegroup and container
Create schema only in-memory table with nonclustered pk
Simulate insert and delete activity.
My result is ...
1
vote
2
answers
220
views
in-memory DB startup time SQL Server
I have a question on amount of time it takes for an in-memory OLTP SQL Server 2019 database (no Accelerated DB recovery configured) to come online.
I have 2 tables each with 40GB in size (in-memory) ...
0
votes
0
answers
42
views
Dumps created on on secondary instance of always on
We have an two SQL server 2017 instances with CU20 that are configured in a read scale always on with Windows 2016 OS machines.
The database in these instances uses: In memory optimized tables, ...
0
votes
0
answers
65
views
In-memory table performance
I hope someone can help me troubleshoot the cause of the sudden drop in Transaction created/sec, batch request/sec and the slow performance of in-mem table.
This is a POC exercise - I am trying to ...
0
votes
1
answer
31
views
MySQL controlling shutdown
We are running a financial application using MySQL as database.
For performance reasons we are using memory tables for a few of our live tables where the data is populated ever few milli seconds.
...
2
votes
2
answers
592
views
Error creating memory optimized filegroup in SSDT
I am attempting to add a memory optimized filegroup to a SQL server database project in SSDT. This is for SQL Server 2017, using Visual Studio 2017.
However compiling the project (pressing F5 to ...
9
votes
1
answer
634
views
Efficiently store large list structure in RocksDB so that the data can be retrieved in pages
Description:
RocksDB is a key-value storage so we can simply serialise the list of objects & store the value corresponding to a key. This would be ok if the data in the list is small enough.
...
2
votes
2
answers
391
views
Is an in-memory table faster to read from than a table cached in memory?
Is an in-memory (aka Hekaton) table faster to read from than a non-in-memory table that's already cached in the memory of a SQL server?
I ask this because I have a case where I'm considering ...
0
votes
2
answers
317
views
How to prevent memory optimized tables from blowing out OPT_MEMORY_OPTIMIZED\$HKv2
Microsoft SQL Server 2017 database, Developer edition. Just updated to latest version (RTM-CU17) (KB4515579) - 14.0.3238.1 (X64).
It uses memory optimized tables. When I run a very large stored ...
8
votes
1
answer
877
views
Database Stuck 'In Recovery' with command XTP_DB_RECOVERY
We recently converted a table to memory optimized data. Our backups have all ballooned (3x300GB files to 3x600GB files for Full, 3x50GB to 3x250GB for Diffs), and startup has been getting ...
0
votes
1
answer
93
views
Can we migrate Azure SQL Database's objects to In-Memory OLTP?
Can we migrate Azure SQL Database's objects to In-Memory OLTP? IF yes then how to perform this step by step?
2
votes
2
answers
1k
views
Move table from InnoDB to Memory
I am using mariadb 10.4 with nignx with joomla 4 on Debian 8 system.
Is it possible for a table that is already created with records in a working database to be moved on memory?
I find only ...
0
votes
0
answers
241
views
How to calculate count of rows of Memory-Optimized Table?
Performance is important for me so I don't use select count(*) from MyTable.
I use the following query to calculate rows count:
SELECT SCHEMA_NAME(schema_id) AS [SchemaName],
[Tables].name AS [...
0
votes
1
answer
61
views
Modifying Schema on secondary replica
I am looking for a solution for a secondary replica change. I have a vendor database that uses memory optimized tables. I am trying to find a solution that would allow the In Memory tables be ...
2
votes
1
answer
92
views
Is there any benefit for natively compiled TVFs when used in non native modules?
I have some schema-bound inline table valued functions that I could natively compile.
However, my workflow does not use store procedures and it would only be invoked from entity framework or ado.net ...
5
votes
3
answers
308
views
"tempdb metadata memory-optimized" configuration option
Checking SQL Server 2019 CTP 2.5 (15.0.1500.28) I found this new configuration option and was wandering what is behind it. Couldn't find any information so far and was wondering if you know where to ...
1
vote
2
answers
2k
views
SQL Server Internal Memory Error
I am using SQL Server 2016 Standard Edition that shows the following errors on DBCC CHECKDB and also on updating statistics.
Version: Microsoft SQL Server 2016 (SP2-CU2) (KB4340355) - 13.0.5153.0 (...
6
votes
1
answer
753
views
Memory-optimized table index size 10X bigger than data
On one of our production servers, I found that index size is 10X times bigger than data size.
These servers and schemas are identical with a similar workload.
CREATE TABLE [dbo].[...
0
votes
1
answer
104
views
Execution plan for staging In-Memory tables estimate row count =1
We are using In-Memory tables (durability schema only) as temporary staging tables for part of the ETL process.
the nature of these staging tables is empty most of the time.
The ETL process executed ...
1
vote
0
answers
415
views
What is the best option for a large slowly changing dimension lookup table
This question is an extension of a previously asked question Index Strategy and Query optimization, which further extends this question: Search between IP string addresses
I implemented the two new ...
1
vote
2
answers
66
views
Insert streamed RFID data
I have RFID readers currently writing data to files on a hard drive, which then SSIS reads and inserts into the database. Instead, I'd prefer that SQL Server (2016+) read the data stream directly into ...
1
vote
0
answers
1k
views
PostgreSQL Optimize bulk values CTE and SELECT INTO TEMP TABLE to prevent OOM kills
Recently we moved some code from Rails way to raw SQL for performance reasons. We have some jobs which fetch some data from APIs, data can be in 100K+ rows of count sometimes. This data needs to be ...
0
votes
1
answer
588
views
move a database on sql server 2017 with memory OLTP feature [duplicate]
I have a database on sql server 2017 standard edition with in memory OLTP feature enabled, I have to move it on another disk, which is the best way to do it? are there any possible problems?
Can I ...
6
votes
1
answer
611
views
HKHostFreezeCkptTrimming on SQL Server 2017
Have a SQL Server 2017 Standard edition box with build 14.0.3045.24 with one memory-optimized table. When our 3rd party backups complete the SQL Server 2017 error log shows several [INFO] messages ...
3
votes
1
answer
2k
views
Can Entity Framework access In Memory OLTP Tables?
Are there any restrictions with having Entity Framework access In Memory OLTP Tables? Or is this not possible?
4
votes
3
answers
6k
views
How can I drop a Memory Optimized Table?
Running SQL Server Standard 2016 SP2-CU1. I am not as concerned with the In memory Filegroup, but I must be able to drop the table objects? Or possibly rename them?
Running:
DROP TABLE [REF].[...
3
votes
1
answer
1k
views
SQL Server 2017 log file growth with memory optimized table
I'm start to using the memory optimized table, the problem that I have is the log file growth also with the database put in simple mode.
On my maintenance schedule I checkpoint and shrink, but still ...
4
votes
1
answer
580
views
How to drop an in-memory temporal columnstore
Consider the following:
CREATE DATABASE [Foo]
ALTER DATABASE [Foo] ADD FILEGROUP XTP CONTAINS MEMORY_OPTIMIZED_DATA
ALTER DATABASE [Foo] ADD FILE (NAME=XTP,FILENAME='C:\Program Files\Microsoft SQL ...
2
votes
1
answer
3k
views
SQL Server - Nonclustered Index with Include on User Defined Table Type?
I was working with in-memory User Defined Table Types and got stuck on creating indexes on them.
Here's what I am trying to do:
CREATE TYPE dbo.CustomersTbl
AS TABLE
(
customerID int NOT ...
5
votes
2
answers
3k
views
What are all the XTP_THREAD_POOL processes doing?
I just ran sp_who on my SQL Server 2016 instance that uses MEMORY_OPTIMIZED tables, and I see several XTP_THREAD_POOL processes running:
Some other details about the output:
There are exactly 6 ...
0
votes
0
answers
41
views
BigData IoT table without foreign key
We thinking about switching our database structure to a more modern schema. We hope to reduce server performance peaks and gain more performance.
This for I read some concepts about general so called ...
3
votes
1
answer
174
views
Indexes: Normal tables vs memory optimized
If two tables have the same schema but one is "normal" and the other is memory optimized, if I research on how indexes should be for the "normal", can I do a direct extrapolation for the memory ...
2
votes
1
answer
1k
views
Adding index - There is insufficient system memory in resource pool 'default' to run this query
Here's the query I'm trying to run in order to add an index to my new memory optimized table
ALTER TABLE [s_Dim_Response_ram]
ADD INDEX response_ram_clientsurveydid NONCLUSTERED ([Clientid],[...
1
vote
2
answers
561
views
Stored Procedure return unwanted cursor result
Context
I have created a stored procedure that simulates a merge command for an OLTP in-memory table. It used the simulated merge for upsert moving massive data form a normal table to an OLTP one.
...