Native Compilation

Native compilation allows faster data access and more efficient query execution than normal T-SQL stored procedures which are processed as interpreted Transact-SQL. Although you may see a 2X-3X performance improvement accessing memory-optimized tables using the interop engine, the overhead of using interpreted SQL is the limiting factor in the performance improvements that can be achieved with In-Memory OLTP. Even simple interpreted T-SQL statements may still require thousands, and possibly millions, of CPU instructions to execute. Significantly greater performance can be achieved utilizing native compilation.

The first step in native compilation is to convert the row-data manipulation and access logic into C code, which is ...

Get Microsoft SQL Server 2014 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.