0xrawsec / sod

Go Simple Object Database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistencies while bulk inserting

qjerome opened this issue · comments

It may occur that some unwanted inconsistencies happen while bulk inserting.

Issue:

  1. we want to bulk insert some objects amongst which an object does not satisfy index constraints
  2. some objects (handled before the problematic object) are inserted

Desired behavior: Bulk insertion must be atomic, either ALL objects gets inserted or NONE. If ONE object in the bulk does not satisfy constraints, NONE of the object should be inserted