Skip to content

Abstracted batch methods #78

Open
Open
@interstateone

Description

@interstateone

I just want to run through this before I submit a PR.

  • get_object_count(class_name)
    abstracts a count query
  • get_all_objects(class_name)
    hits a max of 11 000
  • delete_all_objects(class_name or array of Parse::Objects)
    hits a max of 11 000 with class_name, but can run more than once to get around that

I've got them in util.rb right now, but that doesn't seem quite perfect. They're batch/query operations but wouldn't be instance methods of those objects. Thoughts?

Any other methods that come to mind?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions