Quantcast
Viewing all articles
Browse latest Browse all 3804

Xojo2024R1: WebListBox with DataSource - RowCount method

In my TableDataSource class (WebDataSource interface) I have RowCount and RowData methods.
The query is passed to TableDataSource.SetQuery method. The query is returning large number of rows from Postgres database, say over 50K.
My question is: should the query string passed to TableDataSource.SetQuery method include limit clause (ex: “LIMIT 100”) or not?

Note: the example shows that RowData is appending “LIMIT” and “OFFSET” ex:

sql = sql + " LIMIT " + Str(RowCount) + " OFFSET " + Str(RowOffset)

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3804

Trending Articles