1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Modify incremental merge code to merge nMin segments at a time.

FossilOrigin-Name: cd34bc1af4ba608ea3b52bab55bcfe0086711900
This commit is contained in:
dan
2012-03-15 17:45:50 +00:00
parent 5730ef599c
commit 4ab6f2b9c1
5 changed files with 59 additions and 43 deletions

View File

@ -66,10 +66,10 @@ proc fts3_build_db_2 {n} {
for {set i 0} {$i < $n} {incr i} {
set word ""
set n [llength $chars]
append word [lindex $chars [expr {($i / 1) % $n}]]
append word [lindex $chars [expr {($i / $n) % $n}]]
append word [lindex $chars [expr {($i / ($n*$n)) % $n}]]
set nChar [llength $chars]
append word [lindex $chars [expr {($i / 1) % $nChar}]]
append word [lindex $chars [expr {($i / $nChar) % $nChar}]]
append word [lindex $chars [expr {($i / ($nChar*$nChar)) % $nChar}]]
db eval { INSERT INTO t2(docid, content) VALUES($i, $word) }
}