MySQL Forums
Forum List  »  Performance

Re: GEO Search with large table is very slow
Posted by: Rick James
Date: April 06, 2009 07:38PM

Two more tricks for timing queries, thereby deducing performance...

1. You are using PHP? Use microtime(TRUE) around queries. Run each query at least twice, timing each one. The second one will be fully cached.

2. Do
SHOW STATUS LIKE 'Handler_%';
before and after running a query. Diff the columns; this will give you some cryptic clues of how much work it had to do.

Each of these is pretty good at comparing one SELECT / INDEX combo to another combo.

You aren't run it with a clear cache, but small times/diffs probably mean that there will be few or no disk hits in a real environment.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: GEO Search with large table is very slow
2711
April 06, 2009 07:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.