on 11-27-2020 3:01 PM
Hi experts !
I'm trying to do this query to an external service (on database this service has 4500 records):
let updateLocation = await tx.run(SELECT.from(location_sync));
But in updateLocation I only have 1000 rows and not 4500. I tried to delete SELECT.limit on my srv.BEFORE ('READ') method, but it doesn't work.
I tried with SELECT.from(location_sync).limit(999999) but it didn't work as well.
Any idea??
Thank you all in advance.
Hi,
The answer is here. You can configure the max items your server is able to provide.
Best regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
david.kunz2 : I face exactly the same problem, and even after configuring the limit as mentioned in the link you mentioned, the underlying external oData service still returns 100 records.
Also, I have checked in debug mode, srv.tx(req).run(query) : req -> query ->SELECT->limit->rows has value 10000 (as set in configuration).
Any hints how to fix?
Thanks!
------------ EDIT --------------
upon further debugging found "req" has the limit attribute with the set value from config, but "query" was missing the limit attribute - setting that to the same value from config & running the transaction, it returns 5000 records - but it is still less than the value set!
Could 5000 be the maximum return value in the framework?
Hi Sara,
Looks like the default max pagination. Have you tried to change the maximum limit?
@cds.query.limit.max: 5000
service SyncData {
entity location_sync ...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.