Skip to content

Commit

Permalink
Do not register the unused primary key compact encoding (secondary in…
Browse files Browse the repository at this point in the history
…dexes store binary key)
  • Loading branch information
andrewosh committed Sep 4, 2024
1 parent de87020 commit 4acf6c3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ class Collection extends DBType {
name: this.description.name + '/value',
fields: this.schema.fields.filter(f => !primaryKeySet.has(f.name)).map(f => f.toJSON())
})
this.builder.schema.register({
...this.schema.toJSON(),
flagsPosition: -1,
namespace: this.namespace,
name: this.description.name + '/key',
fields: this.schema.fields.filter(f => primaryKeySet.has(f.name)).map(f => f.toJSON())
})
}

toJSON () {
Expand Down

0 comments on commit 4acf6c3

Please sign in to comment.