-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
saveInBackground taking minutes to complete and eating up CPU #982
Comments
I have noticed that as well.. @nlutsenko ? |
Hey guys, |
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
Thanks for the help @nlutsenko. Here is what's running:
|
@tahoecoop, any chance you can showcase how does your schema look like? |
Thanks for the reply @nlutsenko, what do you mean that it's parsing the entire tree of objects? Not sure what other objects it would need to parse at this point to create this CheckIn. This behavior seems to happen regardless of the PFObject subclass I'm trying to save. My custom PFObjects do have pointers to other of my custom PFObjects. Let me know if there's anything specific you're thinking about and I can get you more info. Thanks again!
|
Any updates to this, seeing similar lag times.. |
After doing some more research, it appears that our Also, when I log into my app as an email user (without a friend list attached to user object), all saves execute quickly and smooth, so it appears this is probably it. Do you have any suggestions on saving a list of users to my
|
We found out this issue because we decided to do some logging on PFObject.m in this block of code
So we built a loop that went crazy since friends of the app is pointer to each friend, which intern has its own pointers to their friends and so on. Can we build up an object to just save the columns for our comment text w/o it having to go though all this reference lookup, or how would you suggest we tackle this issue. |
Hello! I'm using
saveInBackgroundWithBlock:
in multiple places to save several different subclasses of PFObject. Regardless of the object, as soon as I call this method the CPU starts running at close to 100%. Also the save doesn't go through for many seconds to several minutes. I see that the thread that is humming away showsQueue: PFSQLiteDatabase.synchronizationQueue (serial)
. This is the only thread that is doing anything while I wait for the save, the main thread is not doing anything.I'm trying to figure out if the object I'm saving has another object its referencing that isn't there, and it gets stuck in a recursive loop? Or something in the framework that gets stuck somewhere? I've added the code for Parse debugging in the console but it's not giving me anything too useful. Any help is greatly appreciated, please advise if you require any other information. Thank you very much!
The text was updated successfully, but these errors were encountered: