Peng Yu wrote:

> I have the following code to search for neighboring positions
> (distance <=10). But it is slow for large data set. I'm wondering what
> is the most efficient query for such a search. Note that I don't
> create an index, as I'm not sure what index to create on table A.

I haven't used it myself, but I'm pretty sure this is what the R*tree 
module was designed for:

http://www.sqlite.org/rtree.html

--
Eric A. Smith

Drill for oil? You mean drill into the ground to try and find oil? You're
crazy.
    -- Drillers who Edwin L. Drake tried to enlist to his project 
       to drill for oil in 1859.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to