What I need is to minimize the hits of mysqld. In the list above is a example that I have on my table and I need to show the elements by groups and the groups by pagination (using LIMIT X, Y).
On this moment, I have about 3 or 4 access of mysqld to extract that final list, it begins with a list of limited groups available and finally ordered with the elements involved.
Initially the source went well but now there are more visitors to consult the list and mysqld obliges us to wait 14s per limit of hits. So I am trying to improve the source and make it needed only a single access.
As a example of table above explained, I need to limit the groups (letters, names, strings) with elements involved (numbers as units, dimensions, etc)
Then, with the command [liMIT 0, 2], the list may show all elemens of the letter's group 'a' and 'b'.
If [liIMT 2, 2] the list may show 'c' and 'd'.
Other example, if [liIMT 1, 3], the list may show 'b', 'c', and 'd'.
I think is possible only one mysql's command, but I'm not a advanced programmer. Unfortunatelly I have one table, I can't separate it in sub-tables.
Best regards and thanks for helping me.