2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
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 ...
user avatar
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 ...
user avatar
  • 123
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 ...
user avatar
  • 123
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 ...
user avatar
  • 29
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 ...
user avatar
  • 362
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 151
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 ...
user avatar
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? ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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, ...
user avatar
  • 1,060
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 ...
user avatar
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 ...
user avatar
  • 1,060
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) ...
user avatar
  • 73
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, ...
user avatar
  • 325
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 ...
user avatar
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. ...
user avatar
  • 13
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 ...
user avatar
  • 125
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. ...
user avatar
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 ...
user avatar
  • 24.3k
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 ...
user avatar
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 ...
user avatar
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?
user avatar
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 ...
user avatar
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 [...
user avatar
  • 57
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 ...
user avatar
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 ...
user avatar
  • 519
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 ...
user avatar
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 (...
user avatar
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].[...
user avatar
  • 193
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 ...
user avatar
  • 193
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 ...
user avatar
  • 199
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 ...
user avatar
  • 109
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 315
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?
user avatar
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].[...
user avatar
  • 71
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 123
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 ...
user avatar
  • 27.1k
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 ...
user avatar
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 ...
user avatar
  • 133
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],[...
user avatar
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. ...
user avatar