, / CACHE.
gotchas - , :
SELECT * FROM myTable WHERE (col1 BETWEEN 1000 AND 2000) AND (col2='StackOverflow');
SELECT * FROM myTable WHERE (col2='StackOverflow') AND (col1 BETWEEN 1000 AND 2000);
, MD5' . :
SELECT col1,col2 FROM myTable;
SELECT col2,col1 FROM myTable;
, ( SELECTables, WHERE-, .. - PHP/JavaScript), --, , . JSON, , OP, , JSON gzipped ( AJAXing ).
, CACHE Hash, UNIQUE, .
Node.js, id , CACHE , , , , allHashes.has(hashedSortedQuery). , . true, SELECT CACHE, Hash = 'hashedSortedQuery', else, ( ).
One final note - from my experience doing the same thing, updating my version of SQLite had a HUGE speed improvement, and I only mention this because often on servers with shared hosting the latest version is not always installed. Here is the comparison I made today between the global version of SQLite installed on my server and the latest version of SQLite compiled from the source code: http://pastebin.com/hpWu3UCk
source
share