FWIW - you can do this all in SQLite very quickly if you first create an index. This should do the same as the original code:
Takes just over a second for 50,000 caches.
Image may be NSFW.
Clik here to view.
GSK |
$_sql = "create index gsak_mem.rows on gridtemp(rid) ; update caches set userdata = (select substr('00000' || gridtemp.rowid, length(gridtemp.rowid) + 1) from gridtemp where rid = caches.rowid) where caches.rowid in (select * from gridtemp)" $data = Sqlite("sql",$_sql) |
Takes just over a second for 50,000 caches.
Image may be NSFW.
Clik here to view.
