Skip to content

Commit

Permalink
Remove deduplication related code and doc in MySQL storage (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk authored Aug 29, 2024
1 parent 5584ac2 commit 145f866
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/design/mysql_storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ An internal tile consisting of hashes. There is one row for each internal tile,
#### `TiledLeaves`

The data committed to by the leaves of the tree. Follows the same evolution as Subtree.

#### `HashIndex`

An optional table that allows deduplication to be implemented efficiently.

Reads can scale horizontally with very little overhead or contention between frontends.

Expand Down
2 changes: 0 additions & 2 deletions storage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ func (s *Storage) writeEntryBundle(ctx context.Context, tx *sql.Tx, index uint64

// Add is the entrypoint for adding entries to a sequencing log.
func (s *Storage) Add(ctx context.Context, entry *tessera.Entry) (uint64, error) {
// TODO(#21): Return index if the value is already stored.

return s.queue.Add(ctx, entry)()
}

Expand Down

0 comments on commit 145f866

Please sign in to comment.