Is there any difference in performance and query speed, if i select first 100 rows of data, or select 100 rows with specific offset?
Is that different (i mean not syntax, but difference in speed for this operations) in MySQL
and MS SQL
?
I will have table "Items" with columns "id", "name". I have second table "properties" with columns "id", "value", and foreign key to first table. I will select all items that have specific properties in some value range. There is up to 70 properties and item can have maximum of 6 at same time. First table will have like 20-30k rows.
So i need to know, should i just limit my select by 100 or implement pages with result. Because items past 100 in result is not so important, so if that type of sql query take much more resources than simple select first 100 i will not do this.