CREATE INDEX aisdata_imo_idx
ON "aisdata"
(
imo
)
İngilizce anlatamayacağım için türkçe anlatayım.Sqlite da bu durumu yaşadım.Sonradan fark ettim ki projeyi x64 olarak build almıştım. Bu şekildeyken ilk sorgunun çalışması süresi 5sn üzerindeydi.Projeyi System.Data.Sqlite.x86 dll ile tekrar x86 olarak build alınca ilk sorgu 1sn ye düştü.
23 Ekim 2013 Çarşamba 18:37:56 UTC+3 tarihinde Richard Males yazdı:As described in my post on 'Import Large CSV file via Virtual Table', I have created an 88 million row file. This is a record of vessel locations. Each row contains an integer field called IMO, that identifies the vessel. There are many rows for each vessel, i.e.. multiple rows per IMO. I created a non-unique index for the IMO field as
CREATE INDEX aisdata_imo_idx
ON "aisdata"
(
imo
)
It took 1 hour and 17 minutes to create the index.
When I run a query from the spatialite gui to select all rows for a given IMO, it may take 10 to 20 seconds to return the records. When I re-run this query a second time, it takes a fraction of a second. This is true even after a close and re-open the database. I am also doing this processing for all vessels in a python script. The same thing happens, it is slow the first time I run the script, fast the second and subsequent times I run the script.
I would like to understand what is happening before I start rebuilding the index or trying other approaches.
Any suggestions much appreciated. Thanks in advance.
Dick
--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spatialite-use...@googlegroups.com.
To post to this group, send email to spatiali...@googlegroups.com.
Visit this group at https://groups.google.com/group/spatialite-users.
For more options, visit https://groups.google.com/d/optout.