[quote:1qdxwn7f]
1.- "oCn:RecSet( "custbig", 1000 )" is the pagination size ?
2.- Do you need a id or key unique, no ? then you need define this special field. This is true ? Or how it works?
[/quote:1qdxwn7f]
1000 is the pagination size.
We use this syntax SELCT.... FROM table ORDER BY LIMIT ? OFFSET ? internally. LIMIT ? OFFSET ? is more reliable than LIMIT ?,?
The recommended usage is going to be oCn:RecSet( , -1 ).
RecSet (also Rowset) method automatically ascertains the primary or unique field to construct the ORDERY BY expression.
Existing oCn:RowSet() also operates on a similar principe. But in this case, RowSet keeps expanding automatically on demand, whereas in case of RecSet() navigation is by paging. It is the way the paging is managed that gives experience of continuous navigation of the entire table.
Note:
RowSet() is already a fully developed class
RecSet() is under develoment. In 17.03 it can be used with limitations and by 17.04 it will mature fully.
↧