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