Skip to content

saveInBackground taking minutes to complete and eating up CPU #982

Closed
@tahoecoop

Description

@tahoecoop

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 shows Queue: 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions