1. 09 Jun, 2018 1 commit
  2. 15 Feb, 2018 1 commit
  3. 25 Jan, 2018 1 commit
  4. 20 Jan, 2018 1 commit
  5. 11 Dec, 2017 1 commit
  6. 05 Dec, 2017 1 commit
  7. 16 Nov, 2017 4 commits
    • Steven Allen's avatar
      add context to batch · 6cf32cc8
      Steven Allen authored
      I considered (well, implemented then threw it away) allowing contexts on all
      calls to Batch (Add, Commit, etc). However, really, you should treat a batch
      as a single large "operation".
      
      I also went down the road of generalizing batches to sessions. However, it
      became immediately obvious that permitting add *and* remove *and* fetch would
      require a lot of bookkeeping and that you'd lose a lot of performance. So, we'll
      do that separately.
      6cf32cc8
    • Steven Allen's avatar
      add contexts to Add/Remove methods · 44a78014
      Steven Allen authored
      We'll need these for slower/remote datastores.
      44a78014
    • Steven Allen's avatar
      Add RemoveMany method · f10b5dd9
      Steven Allen authored
      f10b5dd9
    • Steven Allen's avatar
      don't return CIDs on add · b4033237
      Steven Allen authored
      The caller can just call `node.Cid()` and returning CIDs from `AddMany` requires
      allocation.
      b4033237
  8. 15 Nov, 2017 1 commit
    • Steven Allen's avatar
      Make remove idempotent. · 6f9115bb
      Steven Allen authored
      1. Add is already idempotent. This makes remove match.
      2. Generally, all we care about is that the node no longer exists in the DAG. If
      two callers remove a node at the same time, they should both succeed. Currently,
      we *ignore* the result of Remove in go-ipfs. IMO, it would be better to let
      errors be *errors* and only return an error if something goes wrong.
      3. This can be significantly faster. It allows us to batch/queue removes (as
      long as we guarantee that they'll eventually happen).
      4. This matches how most databases/key-value stores operate.
      
      An alternative would be to return `(deleted bool, err error)` but then we don't
      get the speedup.
      6f9115bb
  9. 16 Oct, 2017 16 commits
  10. 29 Aug, 2017 2 commits
  11. 11 Jul, 2017 6 commits
  12. 10 Jul, 2017 1 commit
    • Steven Allen's avatar
      add tests · f718bf7e
      Steven Allen authored
      Makes it *much* harder to accidentally break something.
      f718bf7e
  13. 08 Jul, 2017 1 commit
  14. 04 Jul, 2017 3 commits