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
mistachkin
647ca46fc5
Make use of the _byteswap_ushort() and _byteswap_ulong() compiler intrinsics for MSVC, when available.
...
FossilOrigin-Name: fe144dd73f7097a17c24c7812c2a1cc40466e6da
2015-06-30 17:28:40 +00:00
drh
da6d3e2117
Make use of built-in bswap32() and bswap16() functions in GCC/Clang for a
...
significant performance improvement there.
FossilOrigin-Name: 8bfcda3d10aec864d71d12a1248c37e4db6f8899
2015-06-30 15:10:29 +00:00
drh
ad265296ff
Only use <nowiki>__builtin_bswap16()</nowiki> with GCC 4.8 and later.
...
FossilOrigin-Name: ce8177e3e64d2ac4cd5d9e7757cdd5fcecd7d0ea
2015-06-30 14:01:20 +00:00
drh
329428e208
Remove the use of htonl() in the previous check-in due to linkage issues.
...
Add the get2byteAligned() macro and use it for access to the cell offsets
on btree pages for about a 1% performance gain.
FossilOrigin-Name: 79ff36b7170c9e7e7a9935c8b9d1665867771087
2015-06-30 13:28:18 +00:00
drh
5372e4d4f9
Make use of htonl() and <nowiki>__builtin_bswap32()</nowiki> for faster
...
implementations of sqlite3Get4byte() and sqlite3Put4byte().
FossilOrigin-Name: bc27ebd7f73e9fc8e00da6ec82632e439fcce812
2015-06-30 12:47:09 +00:00
drh
3169906d06
Change an unreachable branch into an assert() in sqlite3PagerAcquire()
...
and optimize sqlite3PcacheOpenSavepoint() by factoring out rarely used code
into a subroutine.
FossilOrigin-Name: b406b20ecdf0bff63c5c222fab11cb9acee86765
2015-06-30 11:07:32 +00:00
drh
d8c0ba3b02
Optimization to the sqlite3PcacheFetch() logic.
...
FossilOrigin-Name: d9a0481ce0fd9824b1566f182d68ec46ef091b1b
2015-06-30 03:57:59 +00:00
drh
50642b1deb
Put all variable declarations for sqlite3PagerWrite()
...
at the beginning of the block. Syntax only - no logic changes.
FossilOrigin-Name: a0fa6b3ba59716e53b8c035b497602050ed0ccb8
2015-06-30 03:34:13 +00:00
drh
1116bf1359
Implement sqlite3Strlen30() using strlen() from the C library.
...
FossilOrigin-Name: 8001aa52bd12f900092387fe3571463e89efd977
2015-06-30 03:18:33 +00:00
drh
597d2b6412
Change sqlite3ApiExit() so that its first argument is never NULL.
...
FossilOrigin-Name: 791b706ec6c3e80885666e48e01524f0e9a7557e
2015-06-30 03:13:47 +00:00
drh
27fb746cde
Put BtCursor objects on a singly-linked list instead of a doubly-linked list.
...
Add the BTCF_Multiple flag. Only invoke saveAllCursors() when using a cursor
that has BTCF_Multiple set.
FossilOrigin-Name: 429ccef2b36fc46e92914eb54afd5f800b1a40ff
2015-06-30 02:47:36 +00:00
drh
98ef0f6c48
Convert several 5-year-old and older NEVER() macros into assert().
...
FossilOrigin-Name: ed54c14ea8a72d69d69e0c0d7f6936f54efc04c2
2015-06-30 01:25:52 +00:00
drh
207c817365
From sqlite3BtreeInsert(), bypass the btreeMoveto() routine for table inserts
...
and go directly to sqlite3BtreeMovetoUnpacked().
FossilOrigin-Name: 53fe685d56368af78238c8981cc41704929f7660
2015-06-29 23:01:32 +00:00