Limit DQL results
The number of results from a DQL query can be limited by using the RETURN_TOP keyword. Since multiple rows can be returned for one object, the result limit does not always limit the results to a number of objects, but to a number of rows. The database does not know about 'Objects', therefore the result limit of returned objects is implemented in the content server. The database can only limit the result of rows. The way result limitation is executed is controlled by the 'return_results_row_based' parameter in the server.ini file : - return_results_row_based = False -> Returns Objects. - return_results_row_based = True -> Returns Rows. Default = True (Rows)
DQL Hint : enable(RETURN_TOP N) Example : SELECT * FROM dm_document enable(RETURN_TOP 100)
Snippet contribution
Do you want to contribute and add your own snippets? Create an account and start sharing your information.
