I am trying to select records from database table here is query
$select = $this->newDbConnection()
->select()
->from($this->getDbPrefix() . 'test', '*')
->order('id', 'ASC')
I want to limit result records lets say 500 recoreds per request.
final query would look like this
SELECT `test`.* FROM `test` ORDER BY `id` ASC LIMIT 0,500
How I can set limit**(LIMIT 0,500)** by magento2 way?