As the title shows, I currently need to insert or update more than 10,000 pieces of data at one time, and the current RawEntity entity class only provides the function of inserting or updating a single piece of data. How can I implement batch insert or update data operations?
Community moderators have prevented the ability to post new answers.
To batch insert you can use create for list available probably in AO version >=3.x
<T extends RawEntity<K>, K> void create(Class<T> var1, List<Map<String, Object>> var2);
I would like to join the question about batch update. Is there any option to save in batch instead of using save method from RawEntity class?
I used the same solution as you for batch insertion. In the previous plug-in development work, my ao version was only 1.2.x, which prevented me from discovering this batch saving method.
Regarding batch update, I don't have any good ideas to implement it. Maybe we can re-implement the underlying logic of ao and add a batch update method?
If you have any good ideas, please feel free to contact me at lamella@skyln.cn
Sincere blessing
:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.