Have fts5 cache the structure of its index in main memory. Use "PRAGMA data_version" to figure out when this cache should be invalidated.

FossilOrigin-Name: 902f221754f3cc6fb4ae049c135f85efce604ed3
This commit is contained in:
dan
2016-03-21 15:30:50 +00:00
9 changed files with 202 additions and 46 deletions
+4
View File
@@ -640,6 +640,10 @@ int sqlite3Fts5StorageMerge(Fts5Storage *p, int nMerge){
return sqlite3Fts5IndexMerge(p->pIndex, nMerge);
}
int sqlite3Fts5StorageReset(Fts5Storage *p){
return sqlite3Fts5IndexReset(p->pIndex);
}
/*
** Allocate a new rowid. This is used for "external content" tables when
** a NULL value is inserted into the rowid column. The new rowid is allocated