-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse.Object.saveAll() get slower after each call #6300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You could try We are currently looking into improving the caching as well. |
@rasool1994 Can you share details on how you achieved the 100000 performance improvement? |
There are many possible causes for the described issue here, the bottleneck could be the database instance, the server instance, the parse server or the custom app logic. I'm closing this as it lacks essential information required to investigate the issue. Please follow up on any questions asked and further steps suggested in the thread and we can re-open this issue. |
I would also like to know how rasool1994 resolved this -- anyone have more details on how this was resolved? I will play around with mongoose in the meantime to see if that'll solve it instead of using Parse.Object.saveAll(). |
Issue Description
I have a cloud function that acts as an API for getting data from another server.
let suppose server x read some data from an MSSQL database and send every 1000 record in one request to my parse server API.(ex: 13 calls for 13000 records)
every time that API called, Parse.Object.saveAll() would work slower.
cloud code
Expected Results
save each 1000 records at the same time
Actual Outcome
increase save time as request go along
Environment Setup
Server
Database
Logs/Trace
2019-12-26T18:00:32.004Z
B
59
C
941
A
2019-12-26T18:00:33.016Z
B
101
C
3317
A
2019-12-26T18:00:36.443Z
B
143
C
5790
A
2019-12-26T18:00:42.382Z
B
302
C
8169
A
2019-12-26T18:00:50.859Z
B
258
C
8542
A
2019-12-26T18:00:59.666Z
B
271
C
12515
A
2019-12-26T18:01:12.458Z
B
315
C
13761
A
2019-12-26T18:01:26.541Z
B
494
C
17816
Update
I tried replacing mongoose API with parse object handling system and the result was amazing
100000 record saved in 8 seconds.why parse API is so slow in MongoDB case?
The text was updated successfully, but these errors were encountered: