10BC0 Bulk 'create' generates multiple events · Issue #403 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Bulk 'create' generates multiple events #403

@sunabozu

Description

@sunabozu

I've noticed that if I send an array to a create method, I get an event for each added resource. And I also suspect that instead of inserting the whole array at once (in MongoDB for example the insert method accepts arrays for bulk operations and sends them to the insertMany method; it's supported in Mongoose since the 4.4.0 version Automattic/mongoose#723) Feather services do it one by one, which is highly inefficient.

In my case I parse a file with thousands of entries, and I need to insert them as fast as possible. Currently Feathers doesn't help me much with this task.

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

      0