On 18 Nov 2016, at 7:20pm, David Raymond <[email protected]> wrote:

> insert into coordExtremes select State, min(Latitude), max(Latitude), 
> min(Longitude), max(Longitude) from foo.bar group by State;

Create indexes on table foo for the latitude and longitude columns.

CREATE INDEX idx_foo_lat ON foo (Latitude);
CREATE INDEX idx_foo_long ON foo (Longitude);
ANALYZE;

Then try the SELECT again.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to