yajra / laravel-oci8

Oracle DB driver for Laravel via OCI8

Home Page:https://yajrabox.com/docs/laravel-oci8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve pagination for newer oracle

xorock opened this issue · comments

Laravel 10.
Oracle above 12.1

I have a database with a lot of data (millions of records) and using default pagination is practically out of the question. Queries to the database take several minutes, while handwritten queries are executed in a fraction of a second. Wouldn't it be possible to separate the paging mechanism depending on the version of oracle? For a newer version introduce offset... fetch.

You can, of course, write queries manually, but there are other mechanisms in laravel, such as scout, which are difficult to circumvent.