June 18, 2013

Post: Why MySQL could be slow with large tables ?

… well for Oracle,MS SQL, PostgreSQL may not work …range scan by index: mysql> select count(pad) from large; +————+ | count(pad) | +————+ | 31457280 | +————+…bound workloads. There are certain optimizations in works which would …and then accessing rows in sorted order can be a …

Comment: Four ways to optimize paginated displays

Three points, since I looked at optimizing a similar problem not too long ago. 1) SQL_COUNT_FOUND_ROWS can make your query… rows in milliseconds. If you add SQL_COUNT_FOUND_ROWS to your query though, the optimizer will have to exhaust the query in…’s faste to sort backwards and reverse your limit. e.g. if a query returns 100,000 rows order by timestamp limit…

Post: Shard-Query EC2 images available

…logs. You can fix this by modifying shard-query/run_worker to…time). $ echo “select count(*) from ontime_fact;” | ./run_query Array ( [count(*)] => 135125787 ) 1 rows…response time, get a good plan optimizer-prune-level=0 partition=ON…-cache skip-name-resolve sort-buffer-size=512K sql-mode=STRICT_TRANS…