Let's say we have to fetch only 5 records from a table but my where clause is matching 25k records in database. So is there a way in ofbiz framework to just select 5 records rather than getting a list from database and then taking just 5 from the list?
If limit is not possible (since ofbiz API is database agnostic) what are my other alternatives?
I would you suggest you to take a look into this entity engine cookbook
Essentially for getting limited set of rows from database you would do:
Also if you prefer to send direct SQL to your database then just do like this: