1
I’m making a page search system in which I will always make the subsequent query in the bank:
'SELECT title FROM pages ORDER BY title ASC OFFSET' +iniciaL + 'FETCH FIRST 32 ROWS ONLY'
I choose an initial OFFSET and always take the next 32. However, I think this ordering will always cost some processing. I wonder if there is already some command in postgres that will leave my table pages
always ordered and as soon as I perform this consultation: 'SELECT title FROM pages ASC OFFSET' +iniciaL + 'FETCH FIRST 32 ROWS ONLY'
i have 100% guarantee that the results are already ordered(if I have not given INSERT of course).
Is it efficient knowing that my inserts only happen once a day, 12:00? or do I leave anyway?
(The table pages will have about 5.5 million lines)
I think he meant Rows
– HudsonPH
mals is Rows even
– Vinicius Morais