Feeds:
Posts
Comments

Posts Tagged ‘MySQL’

Pagination of long lists often works with SQL queries like the following one with an offset O and a limit number N:

SELECT * FROM table ORDER BY something LIMIT O, N

THe WILL PAGINATE plugin for example produces queries like this. They can be awful slow if the offset O is very large. A [...]

Read Full Post »

Sphinx is a free open-source SQL full-text search engine, and quite useful for fast full-text search. If you get the error
ERROR: index ‘main’: sql_fetch_row: Lost connection to MySQL server during query
during indexing of a large database with Sphinx (large means more than 500.000 rows in a table), then it may help to increase [...]

Read Full Post »