Comments (5)
Do you find that you need to set different batch sizes all the time? Or would it be acceptable to set the batch size on the Config object?
from force-rest-api.
Setting different batch size gives more flexibility as we would making soql on various collections, giving us an option to fine tune the performance.
from force-rest-api.
Can you give some pseudo code samples of how you would like it to work?
from force-rest-api.
I am leaning heavily towards providing this in ApiConfig and I am looking to understand whether that would be unreasonably burdensome
from force-rest-api.
I understand your viewpoint.
Just an example of my usecase: I make SOQL with batch sizes varying from collections to collections.
Some objects can be processed asynchronously so batch size won't matter. (Maybe in future to tune the backend optimisation, I might need the batch size)
Some are rendered on the UI and needs pagination. These can be configured differently for the different pages fetching and rendering respective objects. (Pages for two different collections can be configured with different pagination size).
So only I was suggesting argument based interface. I agree with having a default value set in the ApiConfig as it would be useful for many, but the former one shall give amazing flexibility.
eg.
QueryResult query(String query, Class clazz, int batchSize);
QueryResult queryMore(String nextRecordsUrl, Class clazz, int batchSize);
from force-rest-api.
Related Issues (20)
- Add formula to DescribeSObject.Field
- Force REST API - giving below exception
- Springboot 3.3 Stream closed HOT 2
- Return http responses instead of void calls
- updateSObject: "The Id field should not be specified in the sobject data" HOT 1
- Missing instance_url and id in ApiSession HOT 2
- Support for jdk 10 HOT 1
- Support for Blob data HOT 2
- Redirect not working HOT 1
- did not save the the id of the created object. any way to update the object?
- Test failure on v46 HOT 2
- Support for Salesforce Platform Events HOT 1
- Provide support for Rest Resource calls. HOT 1
- JDK 8, mvn install -DskipTests is failing. HOT 1
- Username and password are not escaped in soap login.
- Is support search api now? HOT 4
- Add support for Headers HOT 1
- autoRenew in ForceAPI.java not working
- Add support for JWT Bearer Flow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from force-rest-api.