Home » Performance » MySQL » Map bounding box..
Map bounding box.. [message #517] Mon, 01 January 2007 13:50 Go to previous message
oordopjes  is currently offline oordopjes
Messages: 15
Registered: January 2007
Junior Member
Hi, I would really like any suggestions on the following concerning performance..:

I have 1.000.000 locations with:
- a name
- a latitude
- a longitude
- a score

I want to:
- select all locations on a particular (google)map. So a latitude BETWEEN (.. AND ..) AND longitude BETWEEN (.. AND ..)
- fulltext match name. So name MATCHES (..)
- ORDER BY score

How would I get the best performance? What indexes should I create? Should I split the data in two tables and then JOIN? Or should I put everything together in one table?

ANY help would be great!!

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:mysql not using index
Next Topic:can't open .ibd file error
Goto Forum:

  


Current Time: Sat Jul 4 12:00:35 EDT 2009

Total time taken to generate the page: 0.00624 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.