mistachkin
ebad80e373
Refine cleaning of FTS5 files by Makefile targets.
...
FossilOrigin-Name: e548d77b3c91cdf11c78d1a688fd768e209bdbf5
2015-07-14 00:36:34 +00:00
drh
fcd4325398
Fix the origination date on the loadfts.c utility program.
...
FossilOrigin-Name: 5c76c062c0cbf7c95897c5de4868172292023303
2015-07-13 23:55:08 +00:00
drh
3547c5184c
Fix the header comment on the loadfts.c utility program.
...
FossilOrigin-Name: 955ad4ae1978eeee1be9014fe2760c8519ad6206
2015-07-13 18:01:14 +00:00
dan
3eb9024d68
Fix inconsistencies in formatting of fts5 docs.
...
FossilOrigin-Name: 5fb4c77163be8d5ff1e2934dda3cc2ad0a6267e8
2015-07-10 17:55:42 +00:00
dan
d2454f47e7
Improve the performance of docid merges in fts5.
...
FossilOrigin-Name: b2de77a01cc5edcea2f98f7916e64cb33e6bd414
2015-07-09 20:46:35 +00:00
dan
3dbd2397f4
Reduce the number of calls to malloc() made by fts5.
...
FossilOrigin-Name: 898618ccf61d3ad166d9fc742e132d518338b5c3
2015-07-09 19:02:19 +00:00
dan
a90579db99
Fix two problems that could cause fts3 auxiliary functions to occasionally misbehave if used with match expressions that contain both OR and NEAR.
...
FossilOrigin-Name: 372c1db2475f367d54270d5801aff0503745bff4
2015-07-08 17:59:08 +00:00
drh
104a25a034
Enhance the pcache1 page cache so that it tries to allocate a block of
...
SQLITE_DEFAULT_PCACHE_INITSZ pages from malloc() on startup, and uses those
preallocated pages when possible rather than going to malloc() for each
individual page. About a 5% performance increase for some workloads.
FossilOrigin-Name: 5348ffc3fda5168c1e9e14aa88b0c6aedbda7c94
2015-07-08 16:22:42 +00:00
drh
7b341e6f99
Comment fix. No changes to code.
...
FossilOrigin-Name: c1e2ed0ef4d3436d19d3203c5fb553caac53659e
2015-07-08 14:13:44 +00:00
drh
52d9f40b7d
Do not do the bulk pcache1 allocations if SQLITE_CONFIG_PAGECACHE specifies
...
a global page cache buffer.
FossilOrigin-Name: 75d98dae676996a05e97b09b19e34463e8f30d51
2015-07-08 13:40:50 +00:00
drh
4698136594
Early detection of file corruption in a debugging routine, before the invalid
...
data can cause problems.
FossilOrigin-Name: b27a47fef995f0ab2516e6ca779711cab1f50fb9
2015-07-08 12:25:38 +00:00
drh
e56d43010d
Avoid left-shifting bits into the sign of a signed integer, as such behavior
...
is technically undefined.
FossilOrigin-Name: 9417b4021b779876dcb3b9be636f01f4055eb54e
2015-07-08 01:22:52 +00:00
drh
4297c7c4be
Add a compile-time constant for configuring the default pagecache setup.
...
FossilOrigin-Name: ad5fdfbac85682f0f0dee62e1086f40026a58be2
2015-07-07 21:14:42 +00:00
dan
bcf2163771
Merge the Fts5MultiSegIter and Fts5IndexIter objects.
...
FossilOrigin-Name: 6ace73541ae48aeb19e0c2d9f6772d032d0a7eae
2015-07-07 19:35:11 +00:00
dan
01233d3e54
Add a test case to verify that "PRAGMA data_version" works as expected when an OTA client writes to the database.
...
FossilOrigin-Name: 6441f2dc9e7f53de64bc15b1d766c885b2635112
2015-07-07 19:07:30 +00:00
drh
fd5ae9649c
No need to test sqlite3GlobalConfig.bCoreMutex when SQLITE_THREADSAFE==0.
...
FossilOrigin-Name: 26db0fee06947d75621237a641b9652b312b3b37
2015-07-07 15:14:16 +00:00
drh
c54357cc2a
Simplify the page recycling condition in pcache1. Fix test cases to work
...
with the latest changes.
FossilOrigin-Name: 5b60df5503f61922326b3e10e94aa197b17afe4b
2015-07-07 14:06:18 +00:00
dan
b2fe306a2e
Further optimizations for fts5 b-tree seeks.
...
FossilOrigin-Name: f37899686c032145f431f81c1072738536c61c7e
2015-07-07 08:29:32 +00:00
drh
db7ae89d5b
A unified cache is now only used for SQLITE_ENABLE_MEMORY_MANAGEMENT, or if
...
SQLITE_CONFIG_PAGECACHE defines a shared start-time page cache buffer and the
application is single-threaded.
FossilOrigin-Name: d5ff1d69054d51a55eff6e1979971822db7f8f30
2015-07-06 20:57:22 +00:00
dan
656773b675
Speed up seek operations on fts5 b-tree structures.
...
FossilOrigin-Name: 7b7da1eb435d321fc4283f6aa2161fa1e16f2cf3
2015-07-06 20:27:19 +00:00
drh
ee70a84ea7
Enhance separate pcache1 to allocate a block of pages from heap on startup,
...
if possible, for a 5.2% performance improvement.
FossilOrigin-Name: aa7341c8736732a0a59f6688cc34e78be02a7bfc
2015-07-06 18:54:52 +00:00
drh
b63ce02f57
Do not allow recursive CTEs that use aggregate queries in the recursive part.
...
FossilOrigin-Name: 6d2999afbc25b9c238e4028f637c10eaaf0ec75e
2015-07-05 22:15:10 +00:00
dan
30ae503167
Optimize seek operations on fts5 b-trees.
...
FossilOrigin-Name: 8cf02090ce53ec150492d77d9e5e5f27665bd34f
2015-07-04 18:44:07 +00:00
drh
01c5c00c12
Preserve the number of requested PAGECACHE pages even if the memory pointer
...
or size is zero. Enhance the pcache1.c header comment to explain the memory
layout of a page cache line.
FossilOrigin-Name: dacb2a615ce1c0573baf4518000454038745cf2a
2015-07-04 18:15:04 +00:00
dan
70c8885417
Fix a problem in the fts5 integrity-check.
...
FossilOrigin-Name: 4e473559c9bdcf4d0b823e995a3642cd50ebd337
2015-07-04 15:35:02 +00:00
drh
72e191ed71
Do not preserve the btreeInitPage() results in PRAGMA integrity_check if
...
there were cell sizing errors because PRAGMA cell_size_check was turned off
during the btreeInitPage() call.
FossilOrigin-Name: 743bf1f184be316971f2e9c651bcf573bde8654a
2015-07-04 11:14:20 +00:00
mistachkin
68b134c73a
Sync up Makefile clean targets for FTS5.
...
FossilOrigin-Name: 43ead44ef6416d69602e123c3be7a258772837f1
2015-07-04 00:04:37 +00:00
mistachkin
74db356726
Correction to check-in [1025873fdf], tighten up the number of static test mutexes.
...
FossilOrigin-Name: 4e515897af97cb3a4158bcc34318992e8dcee77a
2015-07-03 23:29:55 +00:00
mistachkin
82194aa6e2
Update clean target in MSVC makefile.
...
FossilOrigin-Name: e6c03e72010e919dbac2055b6c3f3b13b1663b15
2015-07-03 23:12:33 +00:00
mistachkin
28ae577a3d
Enhance mutex testing to include APP and VFS static mutexes.
...
FossilOrigin-Name: 1025873fdfd9e7e53094c48af1a79c60ae50ae97
2015-07-03 23:11:36 +00:00
mistachkin
93de653844
Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate.
...
FossilOrigin-Name: b202e2a1d73d104d795d2252b1c6f61d65bfb295
2015-07-03 21:38:09 +00:00
dan
28a10c3c1f
Rework the Fts5MultiSegIter structure a bit to make it more efficient.
...
FossilOrigin-Name: 0778825d0ec9315c70659fae8d0640b209049dd8
2015-07-03 20:47:18 +00:00
dan
00a1351e55
Speed up eof checks on fts5 cursors.
...
FossilOrigin-Name: 3df4af5d8c28863783b0bc867abfbe31cc96f1b9
2015-07-03 19:13:56 +00:00
mistachkin
f156c9b684
Enable use of the __builtin_bswap32() only with GCC 4.3 and higher.
...
FossilOrigin-Name: 030f60a7ba171650ce8c0ac32dc166eab80aca32
2015-07-03 17:54:49 +00:00
dan
ec7c1de354
Avoid freeing the array of instance matches each time the fts5 xNext() method is called.
...
FossilOrigin-Name: b9b0c1e50d77f5d6e02f43fbb100c722cb692cc5
2015-07-03 17:14:18 +00:00
drh
2e43e96107
New command-line options for speedtest1: --multithread, --nomemstat,
...
--serialized, and --singlethread
FossilOrigin-Name: 2b7567229e3ba7e22271bb909ba977b3de19cca5
2015-07-03 14:34:25 +00:00
dan
a153bbc4c2
Copy fts5.h into the build directory as part of building fts5.c. Also remove code to edit fts5parse.c from various Makefiles and add it to mkfts5c.tcl.
...
FossilOrigin-Name: 4d8f03dc7b6529cf8d46fc0fcc82112c0394dc13
2015-07-02 20:12:34 +00:00
drh
d2dc87f6d5
When doing coverage analysis of a btree page for pragma integrity_check,
...
make the first entry (that covers the header, cell index, and gap) implied,
for a performance boost and size reduction.
FossilOrigin-Name: e53d497c2d2fbc5014b39f5624b52ce207800698
2015-07-02 19:47:08 +00:00
dan
6544b8643f
Minor change to mkfts5c.tcl so that fts5.c can be used according to the instructions in loadext.html.
...
FossilOrigin-Name: edbcccd349090efff3f975e27451608136a429fc
2015-07-02 18:52:16 +00:00
dan
3abdc44e7b
Add fts5_source_id() SQL function, similar to sqlite_source_id().
...
FossilOrigin-Name: ec2573487cb86664f7f056168a764c28ca8236fc
2015-07-02 18:16:02 +00:00
mistachkin
c29cbb0bec
Fix harmless compiler warnings and one macro VVA_ONLY macro usage issue.
...
FossilOrigin-Name: bcc8a75509aafda61feb6dcc074668c79611a662
2015-07-02 16:52:01 +00:00
mistachkin
ae6ca8e0ed
Simplify FTS5 handling in the MSVC makefile.
...
FossilOrigin-Name: f022e04343fc166a71b315d5aabbc5cc075a4767
2015-07-02 16:50:43 +00:00
drh
1910def351
Fix a (harmless) shadowed local variable definition in the integrity_check
...
logic.
FossilOrigin-Name: 3a26a919fd5550e5a0053a48cb93a27bb95cc916
2015-07-02 16:29:56 +00:00
drh
cbc6b71f39
Smaller and faster PRAGMA integrity_check that also does a better job of
...
detecting errors. Some output text describing discovered file corruption
has changed for clarity.
FossilOrigin-Name: 251a7590ff4f65f59a1c871892533e4e2c544515
2015-07-02 16:17:30 +00:00
dan
3f09beda45
Remove "#ifdef SQLITE_ENABLE_FTS5" from individual fts5 source files. Add a single "#if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS5)" to fts5.c.
...
FossilOrigin-Name: 7819002ed85497bbd0f9cf4d39df641573324436
2015-07-02 15:52:21 +00:00
drh
0d847186e9
Add the --shrink-memory option to the speedtest1 test program.
...
FossilOrigin-Name: c9ddbd88998d9523e72ad910ea67eb55024b3a88
2015-07-02 01:38:39 +00:00
drh
14681b739b
Avoid create a stack from in sqlite3BackupUpdate() in the common case where
...
the first argument is NULL.
FossilOrigin-Name: 2a897b9e94acaf1fd91e9f8e94fa52e01694f011
2015-07-01 19:59:36 +00:00
drh
e05b3f8f0b
Simplification of PRAGMA integrity_check logic. Make sure that the depth
...
of the right-most subtree is correct. Size reduction and performance increase,
with no change in output.
FossilOrigin-Name: 550705fcb64e7ad637686e47cabe2621d65851bf
2015-07-01 17:53:49 +00:00
drh
94a3115daa
Fix some harmless compiler warnings.
...
FossilOrigin-Name: 307195c8709d7fd2a642baa8011eb0c88cfdc0ac
2015-07-01 04:08:40 +00:00
drh
88266dc17a
Change integrity_check to analyze the cells of a page in reverse order, as
...
this will tend to insert the cells into the analysis heap in increasing order
by address, which is the most efficient way to load a min-heap.
FossilOrigin-Name: 59ad912c4c1f858e04d27b1b8f25581a5f6e5daf
2015-07-01 01:31:14 +00:00