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
2
votes
2answers
46 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
2answers
26 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 ...
7
votes
0answers
333 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
1answer
31 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?
1
vote
2answers
91 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
0answers
67 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
1answer
31 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 ...
1
vote
1answer
42 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
3answers
165 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 ...
2
votes
2answers
291 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 (...
3
votes
1answer
208 views

Memory Optimized table: Index size 10X bigger than data

On one of our production servers, I found out 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
1answer
57 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
0answers
317 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
2answers
49 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 ...
0
votes
0answers
313 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
1answer
127 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 ...
5
votes
1answer
139 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 ...
2
votes
1answer
933 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
3answers
2k 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
1answer
474 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
1answer
270 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
1answer
1k 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 ...
4
votes
1answer
1k 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
0answers
37 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
1answer
148 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
1answer
673 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
2answers
319 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. ...
0
votes
2answers
719 views

Cons of using a star schema in a columnar database

My organisation is implementing a new data warehouse using a columnar data store (Redshift) and the performance is currently abysmal. There are many causes for this but I think the key reason is ...
2
votes
1answer
306 views

Create table partitions on different filegroups, the first boundary on a Memory Optimised filegroup

99% of all our transactions are against the latest week's data, a WEEK_SELECTOR column describing which week is being described. Partitioning our billion+ row table by week would be beneficial, more ...
3
votes
0answers
89 views

In-Memory OLTP Non-Durable

I created In-Memory OLTP Non-Durable Tables in 4 different SQL servers.Lately one of the server performance has degraded and I see lot of processes (Almost 200-300) running with command XTP ...
0
votes
1answer
708 views

How to enable Oracle Database In-Memory feature in Oracle 11g R2 to reduce report generation time?

Problem: Each report generation takes a few hours in Oracle 11g R2 and a few tens of reports has to be generated every day. Objective: To reduce report generation time Understood: a) "reports that ...
1
vote
1answer
370 views

What are some practical use cases for memory tables?

Trying to learn mysql and having tons of other material to learn, I'm considering skipping memory tables, since they have many special characteristics to consider especially that they vanish, after ...
2
votes
1answer
729 views

MEMORY_OPTIMIZED table as replacement for temporary tables

I use temporary tables for complex processing which is done in several "child" procedures. These procedures are working in the same session, so the temp tables are accessible for them. Is there a ...
1
vote
2answers
119 views

SQL SERVER 2016 In-Memory Database

In SQL Server 2016, if we create a database in RAM (i.e using memory optimized tables), the database size should not exceed RAM size, am I right in saying that?
1
vote
2answers
277 views

How do I use SQL Server's “Hekaton”?

The SQL Server 2017 version on Linux comes packaged with a utility called mtlogreader.exe that is absent from the Windows distribution, MtLog Reader - Dump Hekaton MtLog files Usage: \\VBOXSVR\mssql\...
1
vote
2answers
157 views

SQL Server 2016 memory optimised table: Precreated files constantly growing

I have a memory optimised table in SQL Server 2016, with file durability enabled. The table is only 100MB. SQL Server is constantly creating new files on disk, which start off at a few hundred MB, but ...
1
vote
0answers
61 views

Why are pages being removed from the buffer cache

I have an test environment with SQL Server 2016 SP1 installed. My machine has 32GB of RAM and I give 30GB to SQL Server. I have 2 databases in my server - BGD and, BGD_Mem. The second one contains ...
3
votes
1answer
724 views

SQL Server In-Memory Table Conversion [closed]

I have a table that I want to convert to memory optimized. I have 160 million rows in my table. According to this topic my table will need: (24B(header size) + 8B(IndexPointer) + 30B(dataRowSize)) * ...
0
votes
2answers
553 views

Diskbased to in memory tables sql server 2016 ram requirement

I am planning to migrate my tables to memory optimized tables. Currently, I have a total of 250 gigabytes database size on disk. If I migrate this to in memory tables, how much physical RAM will I ...
4
votes
1answer
902 views

Load into memory-optimized table gives insufficient memory error

I am trying to load a memory-optimized table with rows from a disk-based table. It is just a simple INSERT..SELECT since the table structures are almost the same. The database is on a dedicated ...
0
votes
1answer
462 views

in-memory table quota reached in error

Edit 1: From article posted by first answer > this: Additionally, if you are using memory optimized table in the context of table valued parameters repeatedly, you may encounter this error even you ...
2
votes
1answer
96 views

Will I benefit from SQL Server 2014 In-Memory tables if my tables are already fully cached in-memory?

Our most frequently used database is relatively small (5GB), and as a consequence, our 16GB memory dedicated SQL Server 2012 database server chooses to cache all used tables in memory (Buffer Cache ...
0
votes
2answers
66 views

Can I migrate 2 tables (with one table foreign key referencing the other) to in-memory OLTP

SQL 2016 - I have 2 tables, Foo & Bar - Bar references Foo. I'd like to turn Foo into an in-memory optimized table, however as Bar references this, I can't do it. I also can't make Bar in-memory ...
0
votes
1answer
143 views

SQL Server 2016 issue regarding migration of in-memory table and foreign keys

Trying to use table memory optimization advisor on SQL Server 2016, seems I need to drop and re-create the foreign keys of some disk based tables, the size of the table is 300 GB and I'm wondering if ...
1
vote
0answers
219 views

Disk space for non-persisted In-Memory tables

I have a database on a SQL Server 2014 SP2, CU5 Enterprise edition. The database has a memory optimized filegroup. There are two tables in it, both are set to DURABILITY = SCHEMA_ONLY and have a low ...
3
votes
0answers
1k views

There is insufficient system memory in resource pool 'default'

I'm running SQL Server 2016 and I'm getting this error: There is insufficient system memory in resource pool 'default' ...when running batch queries with millions of rows. I decreased the batch ...
3
votes
1answer
752 views

Use Natively-Compiled Stored Procedures in disk-based tables

Is it completely worthless to use a Natively-Compiled Stored Procedure over disk-based tables? (SQL Server 2016) Should all the queries inside a Natively-Compiled Stored Procedure point only to in-...
3
votes
1answer
428 views

Passing Memory-Optimized Table Into Inline Function Causes Error When Called From Stored Proc

When I use a memory-optimized table with a stored Procedure that passes the table to an inline table-valued function I get an error: Msg 596, Level 21, State 1, Line 0 Cannot continue the ...
13
votes
1answer
508 views

Incorrect behaviour of SQL Server 2016 with memory-optimized tables

Please have a look at the following SQL query: CREATE TYPE dbo.IN_MEMORY_TABLE_TYPE AS TABLE ( source_col INT NULL, target_col INT not NULL INDEX ix_InMemoryTable NONCLUSTERED (target_col) ) ...
2
votes
1answer
571 views

Conditions for memory optimized tables stored in off-row data table

Memory optimized tables store LOB types in internal tables. I have a table with no explicit LOB types but when I run a query against sys.memory_optimized_tables_internal_attributes, I see varchar(...