Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export const subgraph_domain = onchainTable(
expiryDate: t.bigint(),
}),
(t) => ({
// Temporarily disable the `byName` index to avoid index creation issues.
// For more details, see: https://github.com/namehash/ensnode/issues/1819
// byName: index().on(t.name),
// uses a hash index because some name values exceed the btree max row size (8191 bytes)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shrugs Hey, I note that the PR @tk-o was working on to add initializeIndexingSetup has been merged now in #1843.

What do you think about exploring how we might add logic in that function to activate the pg_trgm extension in Postgres?

If we do this now:

  • Suggest to add some extra docs somewhere in ensdb-sdk talking about this extension.

If on the other hand we don't do this now:

  • Suggest to create a follow-up issue to log this opportunity.

Appreciate your advice 👍

byExactName: index().using("hash", t.name),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
byExactName: index().using("hash", t.name),
byExactName: index().using("hash").on(t.name),

Incorrect hash index syntax: index().using("hash", t.name) passes column as second parameter instead of using .on() method

Fix on Vercel


byLabelhash: index().on(t.labelhash),
byParentId: index().on(t.parentId),
byOwnerId: index().on(t.ownerId),
Expand Down
Loading