You can use special directives in a comment before each SQL statement to control aspects of the query. For example:
-- Records=[All | Page | ]
Records directive controls the number of initially fetched records. Specify All to fetch all records, Page to fetch one page of records (depends on the window height), or the exact number of records.