SqlQuery setFirstRow fail - modify SQL using LIMIT/OFFSET etc to support firstRows/maxRows
Set the index of the first row of the results to return.
SqlQuery.setFirstRow(10) findList return first row index 0
SqlQuery currently does not modify the SQL to add limit and offset or similar sql changes ... in order to support firstRows and maxRows.
I believe this is what you are asking for in this ticket. To change SqlQuery such that it supports firstRows/maxRows by modifying the SQL (like the Orm queries).
I think that is a somewhat reasonable request/change. Modifying the SQL is relatively simple enough for the LIMIT OFFSET case (MySql, Postgres) but might be more problematic to implement when 'window function' is used (Oracle etc). The big benefit of modifying the SQL is that it will generally be more performant (sometimes far more performant).
Assuming I have understand that correctly I'll adjust the title of this ticket to reflect the desired change.
I think that is a somewhat reasonable request/change. I have a lot of other Sytem/Application table, like Stock , Industry and more 3rd table.I can't table refused to change, i can't build Model for table, so Modifying the SQL is relatively simple enough for the LIMIT OFFSET case (MySql, Postgres) is need for me
Please can quickly support SQL paging?
Thanks!
I don't know how quickly I can get to this. Working on documentation at the moment etc.
:cry: When fix it? @rbygrave
I'm not sure. There are various things ahead of this in terms of priorities but the list is getting smaller. It should be sorted by the end of Jan.
I also need such features , looking forward to an early solution
+1 :+1:
waiting this basic feature @rbygrave help!
which Milestone fixed it? @rbygrave
It is not fixed. It is still open and no milestone associated.
this no fix plan?
start at 23 Apr 2015, Going a year :sob:
@rbygrave This has been forgotten?
No, its a case of complexity and priorities.
That is, the people that pay the bills get to dictate the priorities largely (90%) and secondly this issue is more complex that it seems (in order to support Oracle etc) - those 2 issues have pushed it down the priority list.
Excuse me, not arrange it?
I don't understand your last comment. Can you expand it?
Sorry, I see have doing this?
So the current plan for this issue is that I need to review Oracle's support for limit/offset (that came in with 12 I think?). That is, I am not keen on this only working for Postgres/MySql (or at least it will cause a lot of pain if this is not supported on Oracle as well).
Will some luck I should get to this in the next 2 weeks.
em, now orm padding not use for this?