TARGIT Inmemory
Total Page:16
File Type:pdf, Size:1020Kb
TARGIT InMemory Reference Guide Page 1 of 109 Contents TARGIT InMemory ............................................................................................................................................... 9 What is TARGIT InMemory Database? ............................................................................................................ 9 What is an InMemory Database? .................................................................................................................... 9 The benefits of an InMemory Database .......................................................................................................... 9 Typical import speed ..................................................................................................................................... 10 Database Configuration ................................................................................................................................. 10 Database Server (tiServer.exe) ...................................................................................................................... 10 TARGITDB.INI ................................................................................................................................................. 10 Import Tool ........................................................................................................................................................ 13 Importing into TARGIT InMemory Database ................................................................................................. 13 tiImport Reference Guide .............................................................................................................................. 14 ALTER TABLE ADD COLUMN ...................................................................................................................... 14 CASE ........................................................................................................................................................... 14 CLUSTERED INDEX ..................................................................................................................................... 15 CREATE TABLE ............................................................................................................................................ 15 CREATE VIEW / DROP VIEW ...................................................................................................................... 16 COLUMNIZE ............................................................................................................................................... 16 DECOLUMNIZE Command ......................................................................................................................... 17 SET PRESERVE DECIMAL ............................................................................................................................ 17 DATASOURCE ............................................................................................................................................. 17 Declare ....................................................................................................................................................... 19 DROP .......................................................................................................................................................... 20 EXECUTE .................................................................................................................................................... 20 SCRIPTEXEC ................................................................................................................................................ 21 SQLEXEC ..................................................................................................................................................... 21 EXIT ............................................................................................................................................................ 21 FILEEXISTS .................................................................................................................................................. 21 FLUSH ......................................................................................................................................................... 22 FOR Loop ................................................................................................................................................... 22 FORCEGC .................................................................................................................................................... 23 If ................................................................................................................................................................. 23 IMPORT ...................................................................................................................................................... 24 IMPORTTIMEOUT ...................................................................................................................................... 25 INSERT INTO .............................................................................................................................................. 26 MOVENEXT ................................................................................................................................................ 26 Page 2 of 109 PRINT ......................................................................................................................................................... 26 SAVE ........................................................................................................................................................... 26 SET ............................................................................................................................................................. 27 Supported Cultures .................................................................................................................................... 28 SLURP ......................................................................................................................................................... 35 TRY/CATCH ................................................................................................................................................ 36 VAREXISTS .................................................................................................................................................. 37 WHILE Loop ............................................................................................................................................... 37 Eexport to SQL SERVER .............................................................................................................................. 38 Server and Import optimizations ................................................................................................................... 39 LAZY LOAD ................................................................................................................................................. 39 USEDISK ..................................................................................................................................................... 40 USEDISK FLUSH .......................................................................................................................................... 40 DO PARALLEL …. END PARALLEL ................................................................................................................ 40 Refresh TARGIT InMemory Database ............................................................................................................ 41 TARGIT SSIS InMemory Custom Import Task ............................................................................................ 41 tiLoad ......................................................................................................................................................... 42 Picking up new TARGIT InMemory data .................................................................................................... 43 InMemory Data Drivers ................................................................................................................................. 43 CSV ............................................................................................................................................................. 43 Excel ........................................................................................................................................................... 44 FileList ........................................................................................................................................................ 46 Fixed Width ................................................................................................................................................ 46 Google Big Query ....................................................................................................................................... 47 MongoDB ................................................................................................................................................... 49 Starting tiQuery ............................................................................................................................................