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:
@ -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) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user