SQLite

All files named ”src/vdbesort.c”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/vdbesort.c

2025-06-02
13:54
[cb6f472e83] part of check-in [387f4c4d98] Remove an unnecessary parameter from sqlite3VdbeRecordUnpack(). Improved comments and assert()s on KeyInfo. (check-in: [387f4c4d98] user: drh branch: trunk, size: 97402)
09:49
[0853cde546] part of check-in [abd805bc76] Fix stale comments related to KeyInfo. Add new assert()s associated with memory management of KeyInfo. (check-in: [abd805bc76] user: drh branch: trunk, size: 97356)
2025-06-01
21:38
[706acdc581] part of check-in [8b7a7fcf62] Fix an off-by-one error in the size computation of a vdbe-sorter. Forum post c1cc8b057a. Problem introduced by checkin [d4307a0d43f42e96]. (check-in: [8b7a7fcf62] user: drh branch: trunk, size: 96990)
2025-03-14
18:10
[49e366d021] part of check-in [6fd6b32d06] Make use of the flexible-array feature of C99, when available, to try to pacify -fsanitize=strict-bounds. This check-in fixes the core. There is more yet to do in FTS3, RTREE, and in FTS5. (check-in: [6fd6b32d06] user: drh branch: flex-array, size: 96992)
2025-03-01
11:47
[f7ce6eb4c0] part of check-in [a14d4afd50] Add an assert() in vdbesort.c to help both humans and static analyzer AIs understand why a particular array cannot overflow. (check-in: [a14d4afd50] user: drh branch: trunk, size: 96882)
2025-02-17
17:33
[3e8e6340ec] part of check-in [215650a5a1] Code changes that make it easier to prove that no 32-bit integer overflows happen during memory allocation. No problems fixed; this change is just to make future maintenance easier. (check-in: [215650a5a1] user: drh branch: trunk, size: 96625)
2024-08-07
15:17
[d0a3c7056c] part of check-in [433f2b942e] Add a new assert() to help static analyzers understand that a pointer is never NULL. (check-in: [433f2b942e] user: drh branch: trunk, size: 96517)
14:54
[218fb7358e] part of check-in [5e4c9a74b2] Fix a harmless compiler warning in an assert(). (check-in: [5e4c9a74b2] user: drh branch: trunk, size: 96491)
2024-01-24
21:08
[00c1fb1517] part of check-in [9411337a7b] Add NEVER() to a branch that is no longer reachable. (check-in: [9411337a7b] user: drh branch: trunk, size: 96498)
2023-10-06
12:15
[237840ca19] part of check-in [dc3be3af47] Increase the size of some variables associated with the PMA sorter in order to avoid any possibility of a signed integer overflow. Chromium fuzzer issue 1489025. (check-in: [dc3be3af47] user: drh branch: trunk, size: 96491)
2023-06-07
17:03
[0d40dca073] part of check-in [8c291d9994] Fix straggler misspellings and tidy the custom dictionary. Also include pickups from forum post c61fb09afd. (check-in: [8c291d9994] user: larrybr branch: spell-check, size: 96491)
08:40
[a0d71c5eb1] part of check-in [26c1bb4bd9] Add a C-source spell-checking facility. make misspell (on Nix) (check-in: [26c1bb4bd9] user: larrybr branch: spell-check, size: 96490)
2022-01-03
01:43
[43756031ca] part of check-in [23f042669a] Small performance and size optimization to allocateCursor(). (check-in: [23f042669a] user: drh branch: trunk, size: 96589)
2021-10-28
12:07
[513b481c8b] part of check-in [ba4104aa02] Minor changes to make it easier for static analyzers to reason about the code. (check-in: [ba4104aa02] user: drh branch: trunk, size: 96574)
2021-10-23
17:46
[04292f8c56] part of check-in [5ee14715a5] Fix the memdb VFS so that it does not allow mmap if it is resizable, and so that it never opens a disk file for any reason. (check-in: [5ee14715a5] user: drh branch: trunk, size: 96534)
2021-06-15
15:15
[cd5130f683] part of check-in [272a15b9f4] Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictly necessary. There are no vulnerabilities here. However, adding these checks avoids unnecessary static analyzer complaints. Forum post ce1193be15. (check-in: [272a15b9f4] user: drh branch: trunk, size: 96526)
2020-09-07
11:14
[f5b5e473a7] part of check-in [5a74fa3f0a] Fix another (harmless in practice) tsan error in shared-cache mode. (check-in: [5a74fa3f0a] user: dan branch: trunk, size: 96475)
2020-07-29
16:18
[0b0eae5359] part of check-in [a80ae2c98b] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c98b] user: drh branch: typos, size: 96399)
2020-01-28
20:27
[2be76d2699] part of check-in [59a31b16b5] Faster decoding of 32-bit variable-length integers in cases were we do not need to know the number of bytes in the encoding. (check-in: [59a31b16b5] user: drh branch: trunk, size: 96397)
2019-10-07
20:33
[a3be032cc3] part of check-in [5d76dbc5b0] Omit a pointless memory allocation in vdbeSorterSort(). (check-in: [5d76dbc5b0] user: drh branch: trunk, size: 96391)
2019-08-12
16:36
[da75f505ab] part of check-in [07babb0f89] Experimental implementation of NULLS FIRST/LAST. This branch still has problems - the most significant of which is that ORDER BY clauses with a non-default NULLS FIRST/LAST qualifier can never use an index. (check-in: [07babb0f89] user: dan branch: nulls-last, size: 96488)
2019-07-16
19:44
[3531ae3a43] part of check-in [9e66458592] Add new assert() statements in an attempt to help static analyzers avoid false-positives. (check-in: [9e66458592] user: drh branch: trunk, size: 96267)
2019-04-16
11:21
[66592d478d] part of check-in [af61a2fc45] Avoid a sanitizer error (pointer arithmatic overflow) in vdbesort.c. (check-in: [af61a2fc45] user: dan branch: trunk, size: 96217)
2019-04-13
04:01
[31c7794a51] part of check-in [0b6ae032c2] Enforce the SQLITE_LIMIT_COLUMN limit on virtual tables. (check-in: [0b6ae032c2] user: drh branch: trunk, size: 96119)
2018-08-21
12:46
[90aad5a926] part of check-in [38f9ce6503] Further attempts to reduce the number of false-positives genenerated by static analysis tools. (check-in: [38f9ce6503] user: drh branch: trunk, size: 96069)
2017-08-28
17:26
[789ad6662f] part of check-in [cc440400a1] Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. (check-in: [cc440400a1] user: drh branch: begin-concurrent-branch-3.19, size: 95936)
15:51
[731a09e5cb] part of check-in [54b000246c] Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. (check-in: [54b000246c] user: drh branch: trunk, size: 95881)
2017-08-02
22:43
[fea2bea25f] part of check-in [aea5990eab] In the KeyInfo object, refactor the nField and nXField elements into nKeyField and nAllField, which are more useful and run a little faster. (check-in: [aea5990eab] user: drh branch: trunk, size: 95965)
2017-05-30
18:34
[f512c68d0b] part of check-in [e972a38608] Change sqlite3BtreeNext() and sqlite3BtreePrevious() so that they return SQLITE_DONE if they have already reached the end (or beginning) of the table. This gives a performance increase and size reduction. (check-in: [e972a38608] user: drh branch: trunk, size: 96020)
2017-05-27
22:42
[f26595dfcc] part of check-in [542dc4c5eb] Smaller and faster vdbeSorterCompareText(). (check-in: [542dc4c5eb] user: drh branch: trunk, size: 95815)
2017-04-03
12:04
[e72fe02a21] part of check-in [84fa069c5b] Slightly smaller and faster implementation for vdbeSorterCompareInt(). (check-in: [84fa069c5b] user: drh branch: trunk, size: 95846)
2016-12-21
19:45
[eda25cb2d1] part of check-in [f7ab01f254] Simplifications to the way UnpackedRecord objects are allocated. Smaller and faster code that also fixes a subtle (currently unreachable) bug. (check-in: [f7ab01f254] user: drh branch: trunk, size: 95912)
2016-12-10
12:58
[bb34eed4fb] part of check-in [8165f88bb1] Reorder the fields in the VdbeCursor object so that those that need to be bulk zeroed on allocation are grouped at the beginning, and the memset() only runs over those fields that really need it. (check-in: [8165f88bb1] user: drh branch: trunk, size: 96076)
2016-05-20
14:54
[91fda39093] part of check-in [9033afbb31] Optimizations to link list merge sort code in vdbesort.c, pcache.c, and rowset.c. Resulting binaries are 10 bytes smaller and use 0.03% fewer CPU cycles. (check-in: [9033afbb31] user: drh branch: trunk, size: 96075)
2016-04-14
15:44
[0a8f98366a] part of check-in [79147dca87] Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c). (check-in: [79147dca87] user: dan branch: trunk, size: 96013)
2016-02-19
14:20
[307460bfa4] part of check-in [398522e686] Fix a harmless uninitialized variable access. (check-in: [398522e686] user: drh branch: trunk, size: 95795)
2016-02-13
23:43
[74c22db608] part of check-in [6a9c4a3ebf] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3ebf] user: mistachkin branch: noMemBkpt, size: 95791)
2016-01-29
08:38
[ef3c6d1f1a] part of check-in [2910ef6409] Avoid two more instances of pointer arithmetic on freed pointers. (check-in: [2910ef6409] user: dan branch: trunk, size: 95701)
2016-01-25
22:08
[3bb1f1f031] part of check-in [7c49a9478b] Fix a compiler warning about doing pointer arithmetic involving a NULL pointer even though the result of computation is never used. (check-in: [7c49a9478b] user: drh branch: trunk, size: 95692)
2016-01-12
14:10
[0971557e5d] part of check-in [4bb2c1df10] Fix a harmless use of an uninitialized variable following system errors in the multi-threaded sorter. (check-in: [4bb2c1df10] user: drh branch: trunk, size: 95653)
2015-12-17
17:30
[90a3545ed8] part of check-in [98b710c363] Reduce the size of the VdbeCursor object by a pointer (the pBt pointer used for ephemeral tables). (check-in: [98b710c363] user: drh branch: optimize-vdbecursor, size: 95658)
2015-11-20
19:22
[a7ec02da44] part of check-in [9b1d174d86] Refactor the VdbeCursor object. It is now slightly smaller and faster and is easier to understand. (check-in: [9b1d174d86] user: drh branch: trunk, size: 95652)
2015-10-14
20:34
[8b23930a12] part of check-in [1c46c194a2] Fix harmless compiler warnings. (check-in: [1c46c194a2] user: mistachkin branch: trunk, size: 95237)
2015-05-02
12:40
[f5009e7a35] part of check-in [78c7ec9593] Reorganize some multi-threaded code in vdbesort.c so that full MC/DC test coverage does not depend on the outcome of a race condition. (check-in: [78c7ec9593] user: dan branch: trunk, size: 95229)
2015-04-13
12:45
[2e7f683464] part of check-in [f666ef0686] Remove an unreachable branch from the vdbeSorterCompareInt() routine. (check-in: [f666ef0686] user: drh branch: trunk, size: 94115)
2015-04-11
20:44
[5a729a15fb] part of check-in [79326d6eec] Optimizations for VACUUM, CREATE INDEX and some cases of ORDER BY. (check-in: [79326d6eec] user: dan branch: trunk, size: 94103)
20:20
[a9d39d9996] part of check-in [acca97efda] Fix a problem with sorting large amounts of partially ordered data. (check-in: [acca97efda] user: dan branch: trunk, size: 88726)
2015-04-02
09:06
[74a41fcd3a] part of check-in [80a0053950] Fix a problem in vdbesort.c to do with caching unpacked records. (check-in: [80a0053950] user: dan branch: sorter-opt, size: 94214)
2015-03-30
12:06
[7b3684665e] part of check-in [601e7b6b8e] Improve performance of multi-field sorts where the first field has a low cardinality. (check-in: [601e7b6b8e] user: dan branch: sorter-opt, size: 94211)
09:58
[f283b28d9d] part of check-in [b58191e917] Remove some unnecessary code from vdbesort.c. (check-in: [b58191e917] user: dan branch: sorter-opt, size: 93458)
2015-03-28
19:56
[b3d16bbd66] part of check-in [24fe9f25d6] Further optimizations for sorting records that begin with integer or text values. (check-in: [24fe9f25d6] user: dan branch: sorter-opt, size: 93656)
2015-03-26
11:55
[a8d82ed4b0] part of check-in [ce5ad17c25] Optimize cases where all the sorter is sorting a set of records that all begin with integer values, or that all begin with text values to be compared using BINARY. (check-in: [ce5ad17c25] user: dan branch: sorter-opt, size: 90205)
2015-03-18
16:00
[919717d759] part of check-in [49ea2cded4] Add another sqlite3FaultSim() to the multi-threaded sorter logic to improve testability. (check-in: [49ea2cded4] user: drh branch: trunk, size: 88837)
2015-01-12
17:56
[6d64c5448b] part of check-in [11e81ac2a7] Add an assert() in order to calm a scan-build warning. (check-in: [11e81ac2a7] user: drh branch: trunk, size: 88780)
2015-01-02
21:54
[560bdfd9eb] part of check-in [e0de580726] Fix a harmless compiler warning. (check-in: [e0de580726] user: drh branch: trunk, size: 88743)
15:55
[fc1aa0d1a8] part of check-in [acb0d1e832] Add the SQLITE_CONFIG_PMASZ start-time option. (check-in: [acb0d1e832] user: drh branch: trunk, size: 88733)
2014-12-30
14:40
[80e40d889e] part of check-in [776648412c] If the sorter uses mmap'd temp files, ensure all pages of the temp file have been allocated before it is accessed. Otherwise, a disk-full condition might result in a SIGBUS exception. (check-in: [776648412c] user: dan branch: trunk, size: 88904)
2014-12-09
19:16
[c150803a3e] part of check-in [1ba8911c18] Lower the default SQLITE_SORTER_PMASZ value back to 10, where it has been for the past couple of releases. Applications that need a larger value can set one. (check-in: [1ba8911c18] user: drh branch: trunk, size: 88818)
14:42
[db015e20a7] part of check-in [b05340fe3c] Increase the default minimum PMA size for multi-threaded sorting from 10x the page size to 250x the page size. Provide the SQLITE_SORTER_PMASZ compile-time option to change this default. (check-in: [b05340fe3c] user: drh branch: trunk, size: 88819)
2014-11-25
18:59
[42c166f7ca] part of check-in [6238271925] Fix an integer overflow bug in vdbesort.c. (check-in: [6238271925] user: dan branch: trunk, size: 88778)
2014-11-04
17:23
[87f3923483] part of check-in [d423349d2c] Add various requirements evidence marks for sqlite3_config() options. (check-in: [d423349d2c] user: drh branch: trunk, size: 88525)
2014-11-03
14:46
[daf87ea542] part of check-in [a518bc3318] Use exponential buffer size growth in StrAccum, as long as the size does not grow to large, to avoid excess memory allocation resize operations. Also, document the fact that setting scratch memory causes SQLite to try to avoid large memory allocations. (check-in: [a518bc3318] user: drh branch: trunk, size: 88520)
2014-10-16
21:39
[975aeffa99] part of check-in [06c576c152] Work around MSVC not being able to deduce that a local variable was initialized in a called function. (check-in: [06c576c152] user: mistachkin branch: trunk, size: 88635)
2014-09-19
19:43
[5c1bacf905] part of check-in [3ab20ba14f] Do not attempt to extend the temp file if VFS version 3 is not supported and hence memory mapped I/O is unavailable. (check-in: [3ab20ba14f] user: drh branch: trunk, size: 88631)
00:43
[75c66c2fc0] part of check-in [5b9b898779] Add the sqlite3VdbeMemClearAndResize() interface to be used in place of sqlite3VdbeMemGrow(). A C++ style comment was left in this check-in by mistake, and so it has been moved into a branch to avoid problems in any future bisects on windows. (check-in: [5b9b898779] user: drh branch: Cplusplus-comment, size: 88631)
2014-09-16
14:37
[09efa5e509] part of check-in [8239c35aed] Reduce the number of arguments to RecordCompare functions from 4 to 3, resulting in a small performance increase. (check-in: [8239c35aed] user: drh branch: micro-optimizations, size: 88624)
2014-09-15
16:50
[a7a40ceca6] part of check-in [dedaa6fb3d] Avoid attempting to call the xFetch() method of an sqlite3_io_methods object with a version number less than 3. (check-in: [dedaa6fb3d] user: dan branch: trunk, size: 88630)
15:34
[36ac09004c] part of check-in [55b8011d5b] Merge latest trunk changes with this branch. (check-in: [55b8011d5b] user: dan branch: ota-update, size: 88586)
2014-09-06
16:39
[ab39574ec6] part of check-in [e62aab5e92] Fix typos in comments. No code changes. (check-in: [e62aab5e92] user: peter.d.reid branch: trunk, size: 88523)
2014-09-04
11:03
[7c45bfcd82] part of check-in [071f7f2dec] Avoid calling sqlite3OsFetch() on a file-handle for which the xFetch method is NULL. (check-in: [071f7f2dec] user: dan branch: ota-update, size: 88590)
2014-09-01
17:36
[02646a9f86] part of check-in [b1c0f0bc1b] Add support for using separate worker threads to speed large sorts. The SQLITE_MAX_WORKER_THREADS and SQLITE_DEFAULT_WORKER_THREADS compile-time options and the SQLITE_LIMIT_WORKER_THREADS argument to sqlite3_limit() and the "PRAGMA threads=N" pragma are added. (check-in: [b1c0f0bc1b] user: drh branch: trunk, size: 88527)
2014-08-29
16:20
[f92628f3d5] part of check-in [1b598c68f3] Add SQLITE_LIMIT_WORKER_THREADS for controlling the maximum number of worker threads. (check-in: [1b598c68f3] user: drh branch: threads, size: 88554)
2014-08-25
23:44
[50fe3442f4] part of check-in [e3305d4b4e] Remove the SQLITE_CONFIG_WORKER_THREADS configuration parameter. The number of worker threads in the sorter is now determined only by the PRAGMA threads=N setting. (check-in: [e3305d4b4e] user: drh branch: threads, size: 88338)
15:13
[3a76f51efd] part of check-in [29c5e8a7c9] Query or change the maximum number of worker threads allowed on each database connection separately using the "PRAGMA threads" command. (check-in: [29c5e8a7c9] user: drh branch: threads, size: 88161)
2014-07-30
18:47
[b9a8306858] part of check-in [655d8cfc75] Add a new sqlite3FaultSim() call to vdbePmaReaderSeek() to facilitate tests of error handling in the sorter. (check-in: [655d8cfc75] user: drh branch: threads, size: 88094)
17:21
[e37e494274] part of check-in [721cd96585] Mark some invariants in the vdbesort.c logic when SQLITE_MAX_WORKER_THREADS==0. (check-in: [721cd96585] user: drh branch: threads, size: 88039)
14:44
[cab84b480d] part of check-in [5b50a8380b] Merge recent trunk changes, and especially the fix for the CREATE UNIQUE INDEX problem of ticket [9a6daf340df99ba9]. (check-in: [5b50a8380b] user: drh branch: threads, size: 87416)
13:56
[f7f5563bf7] part of check-in [6b785e92f2] Ensure that the correct number of columns in a UNIQUE index are checked for uniqueness, regardless of whether or not the original table has a ROWID or if the columns are NOT NULL, etc. Ticket [9a6daf340df99ba93c]. (check-in: [6b785e92f2] user: drh branch: trunk, size: 36400)
2014-07-29
18:46
[2198e33de4] part of check-in [3175e366bb] Fix unreachable branches in the threads.c module. (check-in: [3175e366bb] user: drh branch: threads, size: 87462)
17:22
[48b99b15ac] part of check-in [216d21d0e6] Fix a harmless compiler warning. (check-in: [216d21d0e6] user: drh branch: threads, size: 87447)
2014-07-28
20:16
[e78efeed9c] part of check-in [f2407a40f3] Remove an unnecessary parameter from vdbeMergeEngineStep(). Rename a couple other routines to be more descriptive of what they do. (check-in: [f2407a40f3] user: drh branch: threads, size: 87457)
19:58
[143de4b9da] part of check-in [5b084a2dd5] Rename vdbeIncrMergerInit() to vdbeMergeEngineInit() - a much more accurate name. (check-in: [5b084a2dd5] user: drh branch: threads, size: 87545)
18:57
[2ee0867189] part of check-in [09d50d9f0f] In vdbesort.c, rename vdbeSorterDoCompare() to vdbeMergeEngineCompare() and move it closer to the one place where it is called. Other minor comment changes. (check-in: [09d50d9f0f] user: drh branch: threads, size: 87541)
17:18
[cbd9f27e35] part of check-in [518290a7fc] In vdbesort.c, rename all pointers to sqlite3_file objects "pFd" and use the name "pFile" only for pointers to SortFile objects. Other comment enhancements. (check-in: [518290a7fc] user: drh branch: threads, size: 87001)
14:54
[ef998096c8] part of check-in [9af50a878f] Improvements to comments in the multi-threaded sorter. Also include a function name change for clarity. And add a test to help show that the MergeEngine object is only used by a single thread. (check-in: [9af50a878f] user: drh branch: threads, size: 86450)
2014-05-29
20:24
[e2784e2e1f] part of check-in [416cb09126] Merge changes from the trunk into the threads branch. (check-in: [416cb09126] user: drh branch: threads, size: 85339)
2014-05-27
20:19
[44441d73b0] part of check-in [b8b66103de] Remove an incorrect assert() in the sorter. (check-in: [b8b66103de] user: drh branch: trunk, size: 36456)
2014-05-20
11:03
[a8b8798f23] part of check-in [99efb235a0] In vdbesort.c, change the names of PmaReader variables "pIter" to "pReadr". Other related comment changes. The generated object code should be the same. (check-in: [99efb235a0] user: drh branch: threads, size: 85384)
2014-05-19
19:26
[5b3e6963de] part of check-in [aa7e2041a3] Fix harmless compiler warnings in MSVC. (check-in: [aa7e2041a3] user: drh branch: safer-malloc, size: 36506)
15:16
[2024607750] part of check-in [17349a49d2] Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. (check-in: [17349a49d2] user: drh branch: safer-malloc, size: 36501)
2014-05-16
20:24
[15d1405fcf] part of check-in [17afd77057] Rearrange some conditionals and add #if statements to make the code more testable. (check-in: [17afd77057] user: drh branch: threads, size: 85150)
17:31
[f126a837c4] part of check-in [cceac14fd8] Add a pair of sqlite3FaultSim(100) calls to vdbesort.c to facilitate testing of obscure and hard to reach error conditions. (check-in: [cceac14fd8] user: drh branch: threads, size: 84822)
12:18
[7946115f7c] part of check-in [88cfe6d7de] Use #ifdef logic to avoid an always-true branch when SQLITE_MAX_WORKER_THREADS=0 (check-in: [88cfe6d7de] user: drh branch: threads, size: 84758)
2014-05-15
16:56
[0cb40c336c] part of check-in [2e8d287d4f] Use #ifdef to omit code that is not used when SQLITE_MAX_WORKER_THREADS is zero. (check-in: [2e8d287d4f] user: drh branch: threads, size: 84748)
2014-05-12
15:30
[0daa029978] part of check-in [d7e2b0d9cb] In the sorter, only use large memory allocations if scratch memory has not been configured. Add #ifdefs to disable unused code when SQLITE_MAX_WORKER_THREADS is zero. Other sorter changes in support of testability. (check-in: [d7e2b0d9cb] user: drh branch: threads, size: 84652)
2014-05-05
15:58
[b36070436d] part of check-in [2d2edfe58d] Fix a race condition in the sorter code. (check-in: [2d2edfe58d] user: dan branch: threads, size: 84153)
09:08
[af752fa4c1] part of check-in [bde28b702d] Add tests so that the "coverage-sorter" test permutation covers all branches in vdbesort.c. Fix a few minor problems in the same file. (check-in: [bde28b702d] user: dan branch: threads, size: 83716)
2014-05-03
20:43
[db67b5b54c] part of check-in [a33a366ba8] Add an extra fault-injection test to sortfault.test. Remove an unreachable branch from vdbesort.c. (check-in: [a33a366ba8] user: dan branch: threads, size: 83439)
19:33
[c443cdf00f] part of check-in [32ccf3ae18] Fix a race condition in the sorter. (check-in: [32ccf3ae18] user: dan branch: threads, size: 83527)
14:28
[3e8827bb9d] part of check-in [3a66c4e1bf] Fix a problem in the sorter causing it to return spurious SQLITE_NOMEM errors when configured to use memsys3 or memsys5. (check-in: [3a66c4e1bf] user: dan branch: threads, size: 82807)
11:22
[d205b56d0a] part of check-in [e0dea89b3e] Add the SQLITE_DEFAULT_WORKER_THREADS compile-time option. Fix a NULL-pointer dereference that can occur following OOM. (check-in: [e0dea89b3e] user: drh branch: threads, size: 82779)
2014-05-02
16:22
[6bcf73fb16] part of check-in [d4d396387d] Failure to extend a temp file for use with mmap() in vdbesort.c is benign. (check-in: [d4d396387d] user: drh branch: orderby-planning, size: 45184)
16:03
[0095545ae3] part of check-in [d95d68aa1d] Remove a faulty assert() from vdbesort.c. (check-in: [d95d68aa1d] user: dan branch: threads, size: 82737)
15:25
[d0fc5ecd19] part of check-in [9196ce4073] Fix a faulty assert() statement. (check-in: [9196ce4073] user: drh branch: orderby-planning, size: 45218)
2014-04-24
16:25
[469ae9af41] part of check-in [bf09ce24d0] Improved header comment on the vdbesort.c module. No changes to code. (check-in: [bf09ce24d0] user: drh branch: orderby-planning, size: 45216)
12:28
[2b13026e5d] part of check-in [9fb5e21208] Improvements to comments. Store some extra information in SqliteThread that is useful for debugging. (check-in: [9fb5e21208] user: drh branch: threads, size: 82799)
2014-04-18
13:40
[f93c8aaff5] part of check-in [f8f72ecb90] Fix harmless compiler warnings. (check-in: [f8f72ecb90] user: drh branch: threads, size: 82615)
2014-04-17
08:57
[a41721a8e9] part of check-in [12b190db1d] Fix build problems in vdbesort.c. Add further comments and changes to make things easier to understand. (check-in: [12b190db1d] user: dan branch: threads, size: 82457)
2014-04-16
19:04
[fcd15eb438] part of check-in [c0c8cff17b] Clarify the purpose of the nField argument passed to sqlite3VdbeSorterInit(). (check-in: [c0c8cff17b] user: dan branch: threads, size: 80124)
17:41
[70e42f93eb] part of check-in [6622d87675] Change the name of vdbeIncrInit2 to vdbePmaReaderIncrInit. Add a header comment to the same function. (check-in: [6622d87675] user: dan branch: threads, size: 79253)
16:43
[30505a846d] part of check-in [69026ec7dc] Rework the way trees of MergeEngine objects are built in vdbesort.c to make it easier to follow. Fix memory leaks that could follow an OOM or IO error. Add various comments to explain functions in vdbesort.c. (check-in: [69026ec7dc] user: dan branch: threads, size: 78879)
2014-04-15
20:52
[56c663772a] part of check-in [2f94f9ce9b] Fix some problems to do with OOM conditions in vdbesort.c. Some problems remain. (check-in: [2f94f9ce9b] user: dan branch: threads, size: 75731)
19:52
[ceb8e16055] part of check-in [d03f5b8622] Fix further code and documentation issues in vdbesort.c. (check-in: [d03f5b8622] user: dan branch: threads, size: 75407)
2014-04-14
18:41
[15f59dc56c] part of check-in [02610cd9b7] Improve performance in single-threaded mode by having the final merge pass keys directly to the VDBE, instead of going via a final PMA. (check-in: [02610cd9b7] user: dan branch: threads-experimental, size: 71102)
08:45
[364cb94cf1] part of check-in [e400bbbf26] Minor fixes so that builds with SQLITE_MAX_WORKER_THREADS=0 work. (check-in: [e400bbbf26] user: dan branch: threads-experimental, size: 70325)
07:30
[b047de6a9c] part of check-in [e1bdc4b810] Improve use of multiple threads in sqlite3VdbeSorterRewind(). (check-in: [e1bdc4b810] user: dan branch: threads-experimental, size: 70240)
2014-04-12
19:34
[bc0d90e00a] part of check-in [62c406a042] Fix many issues with new code. (check-in: [62c406a042] user: dan branch: threads-experimental, size: 69093)
2014-04-11
19:43
[2984e36243] part of check-in [98bf0307b1] Avoid having the sorter merge too many PMAs at a time when incrementally merging data following a SorterRewind(). (check-in: [98bf0307b1] user: dan branch: threads-experimental, size: 70966)
2014-04-09
20:04
[26823b626c] part of check-in [f9d5e09afa] Experimental multi-threaded sorting changes to allow the sorter to begin returning items to the VDBE before all data is sorted. (check-in: [f9d5e09afa] user: dan branch: threads-experimental, size: 62972)
2014-04-07
18:44
[07c29a5a61] part of check-in [cbfc0f6d49] Experimental multi-threaded sorting changes to begin merging PMAs before SorterRewind() is called. (check-in: [cbfc0f6d49] user: dan branch: abandoned, size: 58722)
2014-04-04
02:13
[8da916fc74] part of check-in [217814bc4b] Change vdbeSorterExtendFile() so that it makes a best effort to create the PMA file of the desired size, but does not return an error if unable. (check-in: [217814bc4b] user: drh branch: threads, size: 56992)
2014-04-03
16:25
[252d7ab762] part of check-in [9d3351b8d7] Fix an integer overflow problem in the sorter. (check-in: [9d3351b8d7] user: dan branch: threads, size: 57037)
14:29
[5e7ed44bb4] part of check-in [0561272abf] Fix minor errors causing compilation to fail with SQLITE_MAX_WORKER_THREADS set to a value greater than zero. (check-in: [0561272abf] user: dan branch: threads, size: 56867)
02:54
[a4e349ff62] part of check-in [d284e30eb1] Refactor local object and method names in vdbesort.c so that their names more closely reflect their actual use. (check-in: [d284e30eb1] user: drh branch: threads, size: 56849)
2014-04-02
18:58
[523283d7c3] part of check-in [eef60f1bf5] Add a big introductory comment to vdbesort.c explaining its operation at a high level. Also adjust some symbolic names and fix other comment issues in that file. (check-in: [eef60f1bf5] user: drh branch: threads, size: 57109)
15:15
[e830ea4a73] part of check-in [47e702bd83] Fix some problems with OOM handling in vdbesort.c. (check-in: [47e702bd83] user: dan branch: threads, size: 53303)
14:38
[0cb83fc36f] part of check-in [4ee2d910fb] Change the name of the SorterThread object to "SortSubtask" to avoid confusion with the SQLiteThread object. (check-in: [4ee2d910fb] user: drh branch: threads, size: 53270)
14:16
[ea22180077] part of check-in [abbdb92516] Incorrect change to a comment. (check-in: [abbdb92516] user: drh branch: mistake, size: 53313)
2014-04-01
18:41
[be494ad4a1] part of check-in [821d1ac450] When sorting data for a CREATE INDEX statement in single-threaded mode, assume that keys are delivered to the sorter in primary key order. Also fix various comments that had fallen out of date. (check-in: [821d1ac450] user: dan branch: threads, size: 53205)
15:38
[375919a716] part of check-in [643c86a056] Even if compile time option SQLITE_MAX_WORKER_THREADS is set to one or greater, set the default number of worker threads to zero. Distribute data more evenly between threads in sqlite3VdbeSorterWrite() to improve performance when sorting large amounts of data. Add new test file sort2.test. (check-in: [643c86a056] user: dan branch: threads, size: 53395)
10:19
[35c270630f] part of check-in [59cd5229e2] Fix a problem with OOM handling in the sorter code. (check-in: [59cd5229e2] user: dan branch: threads, size: 53099)
2014-03-31
19:57
[b4d6133bad] part of check-in [2774710df8] Add the SQLITE_MAX_WORKER_THREADS compile time option. And the SQLITE_CONFIG_WORKER_THREADS sqlite3_config() switch. (check-in: [2774710df8] user: dan branch: threads, size: 52955)
2014-03-29
19:48
[d42a32a4ff] part of check-in [83a105c864] Changes to make the multi-threaded sorter sort stably. (check-in: [83a105c864] user: dan branch: threads-closed, size: 54149)
10:01
[2881297f4a] part of check-in [18d1b402f2] Fix a broken assert() in vdbesort.c. (check-in: [18d1b402f2] user: dan branch: threads, size: 52636)
09:34
[80812ceb59] part of check-in [a683c05f62] Fix a problem in vdbesort.c causing spurious SQLITE_NOMEM errors when using memsys3 or memsys5. (check-in: [a683c05f62] user: dan branch: threads, size: 52636)
06:27
[d7ef3c431d] part of check-in [fc4d04e6b0] Add the optimization to avoid some unnecessary calls to sqlite3VdbeRecordUnpack() added to the trunk by [707ea170b3]. (check-in: [fc4d04e6b0] user: dan branch: threads, size: 52552)
2014-03-28
19:47
[ad0f9f717a] part of check-in [58f7ca2930] Fix a compiler warning and an after-OOM memory leak. (check-in: [58f7ca2930] user: drh branch: orderby-planning, size: 42822)
19:18
[01068b8936] part of check-in [4c7fb54234] Merge latest changes from orderby-planning branch. (check-in: [4c7fb54234] user: dan branch: threads, size: 50418)
2014-03-27
19:25
[08d5e1ee19] part of check-in [81987c8ceb] Instead of allocating a single large buffer at the beginning of each sort operation, start with a small buffer and extend it using realloc() as required. (check-in: [81987c8ceb] user: dan branch: orderby-planning, size: 42791)
17:23
[d46f384af1] part of check-in [f4ac1bf28c] Use xFetch() to access temporary files in vdbesort.c. Use a single large allocation instead of many small allocations when accumulating records in vdbesort.c. This is an interim commit - it allocates a buffer the size of the page-cache every time data is sorted. (check-in: [f4ac1bf28c] user: dan branch: orderby-planning, size: 40085)
2014-03-25
17:07
[691f2186ae] part of check-in [d3e640afe6] Fix a problem in the code added by [707ea170b3] causing vdbesort.c to sort unstably. (check-in: [d3e640afe6] user: dan branch: orderby-planning, size: 37272)
14:12
[c3e427de84] part of check-in [1cab83577c] Enable four sorting threads by default in the command-line shell. (check-in: [1cab83577c] user: drh branch: threads, size: 43625)
13:17
[0fbaf5b3ec] part of check-in [b415dfb6cb] Merge all fixes and enhancements from trunk. (check-in: [b415dfb6cb] user: drh branch: threads, size: 43625)
2014-03-24
20:19
[46e50c6bc9] part of check-in [3f90abddc3] Omit the sequence value from sorter records used by GROUP BY queries that cannot use an index. (check-in: [3f90abddc3] user: dan branch: orderby-planning, size: 36556)
2014-03-20
20:56
[4abb7c0f8f] part of check-in [eca35871c3] Merge trunk fixes for "x IN (?)" handling. (check-in: [eca35871c3] user: drh branch: orderby-planning, size: 36501)
15:14
[0fef5fa890] part of check-in [b1435f26b0] Fix harmless compiler warnings. (check-in: [b1435f26b0] user: drh branch: trunk, size: 36134)
2014-03-19
23:42
[17336685ef] part of check-in [e4bfffb988] Merge the vdbesort.c optimization from trunk. (check-in: [e4bfffb988] user: drh branch: orderby-planning, size: 36491)
20:01
[0a9e5e63d7] part of check-in [707ea170b3] Avoid some unnecessary calls to sqlite3VdbeRecordUnpack() that were being made when merging data from two or more temp files together in vdbesort.c (check-in: [707ea170b3] user: dan branch: trunk, size: 36124)
17:41
[553537f632] part of check-in [7ce2daafd3] Make it possible for block-sort to use the OP_SorterOpen sorter in addition to a generic OP_OpenEphemeral. (check-in: [7ce2daafd3] user: drh branch: orderby-planning, size: 34646)
2014-03-17
15:43
[1d973fcd0e] part of check-in [ff0b5c851b] Add an experimental multi-threaded capability to vdbesorter.c. (check-in: [ff0b5c851b] user: dan branch: threads, size: 43206)
2014-03-01
19:44
[46801acb34] part of check-in [3861e85310] Remove the vdbeRecordCompareLargeHeader function. Fix some other details. (check-in: [3861e85310] user: dan branch: experimental, size: 34279)
2014-02-27
20:44
[72290f1242] part of check-in [5708937400] Further changes to sqlite3VdbeRecordCompare(). (check-in: [5708937400] user: dan branch: experimental, size: 34498)
2014-02-25
21:01
[5144d84bd7] part of check-in [85206e0bba] Attempt to speed up sqlite3VdbeRecordCompare() by various means. This code is in an interim state. (check-in: [85206e0bba] user: dan branch: experimental, size: 34276)
2013-11-01
22:02
[9d83601f9d] part of check-in [302a81390f] Size KeyInfo objects so that IdxInserts always compare the correct number of fields. (check-in: [302a81390f] user: drh branch: omit-rowid, size: 34283)
2013-05-28
12:11
[3937e06b2a] part of check-in [a0d5cc9315] Many small harmless comment changes. Removal of obsolete comments and fixing misspelled words. No changes to code. (check-in: [a0d5cc9315] user: drh branch: trunk, size: 34198)
2013-03-24
22:56
[4fad64071a] part of check-in [8b44d6fb15] Remove the SQLITE_OMIT_MERGE_SORT compile-time option and its related code. The merge sorter is now a required component. (check-in: [8b44d6fb15] user: drh branch: trunk, size: 34198)
2012-10-26
19:22
[c61ca31868] part of check-in [e24ba5bee4] Fix a 32-bit integer overflow problem that could cause an error in a CREATE INDEX statement that writes more than 16GB of data. (check-in: [e24ba5bee4] user: dan branch: trunk, size: 34274)
2012-08-22
15:16
[acaefad52f] part of check-in [acdc7d1270] Do not let the multi-core sorter use lookaside memory, which is not thread-safe. (check-in: [acdc7d1270] user: drh branch: threads-sort-ex1, size: 37350)
2012-08-16
20:05
[3945ae71fe] part of check-in [11dd05e598] Attempt to use two cores to do sorting. Unfortunately, instead of making sorts go faster as was hoped, this changes slows sorting down by about 10%. (Later:) The previous measurement was compiled using -pg. When compiled using -Os, this new code is roughly 10% faster than the original. (check-in: [11dd05e598] user: drh branch: threads-sort-ex1, size: 36805)
2012-08-15
15:57
[e4aa1c1653] part of check-in [2bb8c49261] Experimental change to speed up ORDER BY clauses that sort based on a single expression. (check-in: [2bb8c49261] user: dan branch: sorter-exp, size: 40282)
2012-08-14
19:04
[0dc1b274dc] part of check-in [a5431c86df] Silence three harmless compiler warnings in vdbesort.c. (check-in: [a5431c86df] user: drh branch: trunk, size: 34223)
2012-08-07
22:53
[bd5ce83f93] part of check-in [de804f4c90] Simplifications to the sorter to support full-coverage testing. (check-in: [de804f4c90] user: drh branch: trunk, size: 34204)
2012-08-06
19:28
[4897215f0a] part of check-in [e1e9cb08b0] Merge the sorter-coalesce-writes branch into the trunk. This improves CREATE INDEX performance on some platforms. (check-in: [e1e9cb08b0] user: dan branch: trunk, size: 34459)
19:12
[1de867bfa0] part of check-in [2e5741f774] Fix a crash that could follow an OOM condition. (check-in: [2e5741f774] user: dan branch: sorter-coalesce-writes, size: 34435)
18:10
[ad30785610] part of check-in [214f8cda17] Update sorter-coalesce-writes branch with latest trunk changes. (check-in: [214f8cda17] user: dan branch: sorter-coalesce-writes, size: 34399)
2012-07-26
09:21
[106796cedf] part of check-in [f4b3fded23] Update some comments in vdbesort.c. (check-in: [f4b3fded23] user: dan branch: sorter-coalesce-writes, size: 34357)
2012-07-24
19:46
[628b2bc0cc] part of check-in [d8da26f1f4] Mark parameters to sorter interfaces as const where appropriate. (check-in: [d8da26f1f4] user: drh branch: trunk, size: 29343)
2012-07-23
20:10
[bd37dbd4a0] part of check-in [4ba266fc53] Fix an edge case in vdbesort.c. (check-in: [4ba266fc53] user: dan branch: sorter-coalesce-writes, size: 32886)
19:25
[6822221af9] part of check-in [55e47ef338] Modify the code in vdbesort.c so that most reads and writes to temporary files are aligned page-sized blocks. (check-in: [55e47ef338] user: dan branch: sorter-coalesce-writes, size: 32769)
2012-02-02
21:02
[b25814d385] part of check-in [f14e7f29ff] More structure packing for smaller objects and less memory usage. (check-in: [f14e7f29ff] user: drh branch: trunk, size: 29301)
2011-09-14
18:19
[468d43c057] part of check-in [3035dc1c73] Remove 'const' from a variable that might actually be written when an OOM error occurs. Also, fix a couple MSVC/Win32 compiler warnings. (check-in: [3035dc1c73] user: mistachkin branch: trunk, size: 29301)
13:41
[8dd9c1acd9] part of check-in [a1f3aeeb09] Remove unused parameters from internal routines in vdbesort.c. This is an additional simplification made possible by recent optimizations. (check-in: [a1f3aeeb09] user: drh branch: trunk, size: 29210)
13:23
[df1953a492] part of check-in [607aba6cd7] Remove code from vdbesort.c that was made unreachable by the recent sqlite3VdbeRecordUnpack() optimizations. (check-in: [607aba6cd7] user: drh branch: trunk, size: 29295)
2011-09-05
20:16
[667bc65254] part of check-in [d0712dfb24] Fix a minor performance regression in btreeMoveto(). (check-in: [d0712dfb24] user: dan branch: trunk, size: 30064)
14:20
[4f3265707c] part of check-in [f115b23035] Refactor the sqlite3VdbeRecordUnpack() interface to better accommodate the vdbesort.c module. (check-in: [f115b23035] user: dan branch: trunk, size: 30016)
2011-09-04
01:27
[14d127565b] part of check-in [6b657ae750] Fix a compiler warning about an unused parameter in the merge-sort code. (check-in: [6b657ae750] user: drh branch: trunk, size: 30419)
01:11
[4ceadaa20c] part of check-in [b5179baf87] Improve the testability of the merge-sort logic. (check-in: [b5179baf87] user: drh branch: trunk, size: 30591)
2011-09-03
16:42
[e6d6f0c2aa] part of check-in [99e34bdce4] Simplification and performance tweaks in vdbeSorterMerge(). (check-in: [99e34bdce4] user: drh branch: merge-sort, size: 30200)
14:36
[5e38e7e1f5] part of check-in [666c2c3cff] Reduce the number of VdbeRecordUnpack() calls made in vdbesort.c. (check-in: [666c2c3cff] user: dan branch: merge-sort, size: 30387)
00:17
[aa7ad2ef91] part of check-in [68e26c4487] The build works again with -DSQLITE_OMIT_MERGE_SORT. The merge-sorter now avoids spilling to disk (letting the in-memory linked list grow without bound) if PRAGMA temp_store=3. (check-in: [68e26c4487] user: drh branch: merge-sort, size: 30049)
2011-09-02
21:42
[2ae618bec4] part of check-in [a9a64592cf] Remove some dead code. Fix a faulty assert(). Improve some variable names. (check-in: [a9a64592cf] user: drh branch: merge-sort, size: 29977)
18:03
[b56437b8b3] part of check-in [cf48ad8353] Combine two malloc calls in vdbesort.c. (check-in: [cf48ad8353] user: dan branch: merge-sort, size: 30141)
15:41
[a49d44498c] part of check-in [065b0c9858] Reduce the number of malloc() calls made when creating an index on more than 2 columns. (check-in: [065b0c9858] user: dan branch: merge-sort, size: 30283)
11:45
[1e9d4437c7] part of check-in [71075673c6] If all data being sorted fits in memory, avoid writing any data out to temporary files in vdbesort.c. (check-in: [71075673c6] user: dan branch: merge-sort, size: 29777)
10:31
[9c2e8ca23c] part of check-in [7769fb988d] Instead of a temporary b-tree, use a linked-list and merge-sort to sort records in main memory in vdbesort.c. (check-in: [7769fb988d] user: dan branch: merge-sort, size: 28732)
2011-08-31
23:57
[f3d043a1ba] part of check-in [2869ed2829] Avoid using uninitialized variables after failures in the merge sort code. (check-in: [2869ed2829] user: drh branch: trunk, size: 25248)
2011-08-26
00:34
[8a61a6d731] part of check-in [c71d73201d] Create a new pager type, PAGER_SORTER, for use in the external merge sort. Such pagers are always held in memory but do report when they are under memory pressure by calling pagerStress. (check-in: [c71d73201d] user: drh branch: trunk, size: 25207)
2011-08-24
15:12
[d2c872322c] part of check-in [46f5a68bfa] Fix some harmless compiler warnings. (check-in: [46f5a68bfa] user: drh branch: trunk, size: 24892)
2011-08-17
00:40
[a63bab0546] part of check-in [f01766f423] Use OP_Sort rather than OP_Rewind in order to sort the content of a new index on the CREATE INDEX statement. Add an ALWAYS() to the merge sort logic to document an unreachable branch. (check-in: [f01766f423] user: drh branch: trunk, size: 24880)
2011-08-15
15:37
[af82a8b0d0] part of check-in [c1daa809a1] Fix an assert() in the merge-sort logic to account for I/O errors. (check-in: [c1daa809a1] user: drh branch: trunk, size: 24873)
14:41
[18e27c404d] part of check-in [bd04756b66] When opening a temporary file to use in a merge-sort, pass SQLITE_OPEN_TEMP_JOURNAL instead of SQLITE_OPEN_TEMP_DB. This is a better fit, as merge-sort files are written and read sequentially like journal files. (check-in: [bd04756b66] user: dan branch: trunk, size: 24856)
2011-08-12
16:30
[3e6b226832] part of check-in [7e515055f2] Merge latest trunk changes into experimental branch. (check-in: [7e515055f2] user: dan branch: experimental, size: 24847)
16:11
[a756d20db3] part of check-in [1a8498d803] Remove an unused parameter from a function in vdbesort.c. Fix some comments and other details in the same file. (check-in: [1a8498d803] user: dan branch: experimental, size: 24847)
15:02
[b475ceede1] part of check-in [4ced2394b1] Add the SQLITE_OMIT_MERGE_SORT pre-processor directive. To omit the code in vdbesort.c. (check-in: [4ced2394b1] user: dan branch: experimental, size: 23229)
2011-08-08
19:26
[6498ab4157] part of check-in [eec8c0df07] Remove redundant parameter from vdbeSorterInitMerge() in vdbesort.c. (check-in: [eec8c0df07] user: dan branch: experimental, size: 23153)
16:44
[e9a7d969bd] part of check-in [0e6defa6aa] Add fault-injection and other tests (and fixes) to improve coverage of vdbesort.c. (check-in: [0e6defa6aa] user: dan branch: experimental, size: 22048)
2011-08-06
15:09
[345235345a] part of check-in [038ec9ea92] Fix a problem with building large indexes introduced by the previous commit. (check-in: [038ec9ea92] user: dan branch: experimental, size: 21545)
12:01
[d7739da903] part of check-in [8051c1767c] In temp files used for merge sorting, store the size of each packed-memory-array at the start of the array itself. This is to avoid having to store the offsets of all arrays in the (potentially very large) file in main-memory. (check-in: [8051c1767c] user: dan branch: experimental, size: 21477)
2011-08-05
11:49
[f17fa625db] part of check-in [9ddc324a34] Minor internal changes to vdbesort.c. Also, default to merging lists together 16 at a time. (check-in: [9ddc324a34] user: dan branch: experimental, size: 19940)
2011-08-04
18:43
[87c3b2921c] part of check-in [db8518cab8] Fix a comment in vdbesort.c. (check-in: [db8518cab8] user: dan branch: experimental, size: 21085)
12:14
[e7d1a86ebe] part of check-in [a4770d079c] Change to using packed-memory-arrays instead of b-trees when performing an offline merge-sort for CREATE INDEX. This makes it easier to control the number of disc seeks required when merging. (check-in: [a4770d079c] user: dan branch: experimental, size: 21044)
2011-08-02
10:56
[40bb17d361] part of check-in [7f339c0e26] Minor fixes to vdbesort.c code in preparation for a major rework. (check-in: [7f339c0e26] user: dan branch: experimental, size: 16990)
2011-07-12
14:28
Added: [f07d526dfb] part of check-in [30dbf0feab] Experimental support for speeding up CREATE INDEX commands using an offline merge sort. (check-in: [30dbf0feab] user: dan branch: experimental, size: 16940)