Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index single chain #657

Merged
merged 4 commits into from
Sep 9, 2024
Merged

index single chain #657

merged 4 commits into from
Sep 9, 2024

Conversation

0xKurt
Copy link
Member

@0xKurt 0xKurt commented Sep 4, 2024

fixes PAR-329

src/http/app.ts Outdated Show resolved Hide resolved
@0xKurt 0xKurt changed the title wip: index single chain index single chain Sep 6, 2024
@0xKurt 0xKurt marked this pull request as ready for review September 6, 2024 05:24
async deleteChainData(chainId: ChainId) {
this.#logger.info("Deleting chain data for chainId:", chainId);

await this.#db.transaction().execute(async (trx) => {
Copy link
Member

Choose a reason for hiding this comment

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

  • rename to tx ?
  • Also we should likely do this.#db.withSchema("schemaName").trans... cause else this will break once we add the IPFS schema

Copy link
Member Author

Choose a reason for hiding this comment

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

@thelostone-mc will update this after your PR was merged, ao i can rebase and have the new schema names available

Copy link

linear bot commented Sep 6, 2024

@thelostone-mc thelostone-mc merged commit 4dd2915 into improv Sep 9, 2024
1 of 2 checks passed
@thelostone-mc thelostone-mc deleted the index-single branch September 9, 2024 11:06
0xKurt added a commit that referenced this pull request Sep 11, 2024
* update schema name

* updates

* fix

* Revert "Refactor lock acquisition and release logic (#661)"

This reverts commit 9a2ffe1.
hussedev pushed a commit that referenced this pull request Sep 11, 2024
* update schema name

* updates

* fix

* Revert "Refactor lock acquisition and release logic (#661)"

This reverts commit 9a2ffe1.
hussedev added a commit that referenced this pull request Sep 11, 2024
* have fallback IPFS

* feat: store ipfs data in db

* chore: move prices to it's own schema

* Refactor lock acquisition and release logic (#661)

* update lock logic

* forceRelease of schema

* index single chain (#657)

* update schema name

* updates

* fix

* Revert "Refactor lock acquisition and release logic (#661)"

This reverts commit 9a2ffe1.

* chore: avoid duplicate write + cleanup (#664)

* chore: avoid duplicate write

* cleanup

* improve locking (#665)

add forciblyAcquireLockForSchema

* test

* remove unused code

* add unique constraint

* chore: revert acquireWriteLock function

* f

* fix: args parser

---------

Co-authored-by: Kurt <[email protected]>
Co-authored-by: Hussein Martinez <[email protected]>
gnomadic added a commit that referenced this pull request Sep 12, 2024
* stashing

* stashing

* feat: dogstatsd for indexer progress

* prettier

* cleanup

* iterating

* cleanup

* have fallback IPFS

* feat: store ipfs data in db

* chore: move prices to it's own schema

* Refactor lock acquisition and release logic (#661)

* update lock logic

* forceRelease of schema

* index single chain (#657)

* update schema name

* updates

* fix

* Revert "Refactor lock acquisition and release logic (#661)"

This reverts commit 9a2ffe1.

* chore: avoid duplicate write + cleanup (#664)

* chore: avoid duplicate write

* cleanup

* improve locking (#665)

add forciblyAcquireLockForSchema

* test

* remove unused code

* add unique constraint

* chore: revert acquireWriteLock function

* f

---------

Co-authored-by: Aditya Anand M C <[email protected]>
Co-authored-by: Kurt <[email protected]>
Co-authored-by: Hussein Martinez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants