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

[Epic] channeldb+invoices: create native SQL schema for invoice storage #6288

Open
3 of 4 tasks
Roasbeef opened this issue Feb 22, 2022 · 2 comments · Fixed by #7215
Open
3 of 4 tasks

[Epic] channeldb+invoices: create native SQL schema for invoice storage #6288

Roasbeef opened this issue Feb 22, 2022 · 2 comments · Fixed by #7215
Assignees
Labels
advanced Issues suitable for very experienced developers database Related to the database/storage of LND epic Issues created to track large feature development invoices sql

Comments

@Roasbeef
Copy link
Member

Roasbeef commented Feb 22, 2022

We recently added postgres support, but in a way that just maps things to a naive key-value table. In order to take advantage of increased queryability, and scalability gains, we should convert the invoices (which can be heavily loaded on large nodes that help to operate services) to a native SQL schema. Along the way, we'll want to abstract away the invoice registry's storage behind an interface, so this new data format can be swapped in at runtime, or during initial configuration of the daemon.

Steps to Completion

Related to:

@bitromortac
Copy link
Collaborator

Started to look into the first two points as of assignment to #6954.

@guggero
Copy link
Collaborator

guggero commented Jan 17, 2023

Re-opening since one part is still missing (will link when PR is up).

@saubyk saubyk modified the milestones: v0.16.0, v0.16.1 Feb 14, 2023
@saubyk saubyk modified the milestones: v0.16.1, v0.17.0 Mar 13, 2023
@saubyk saubyk added the epic Issues created to track large feature development label Apr 20, 2023
@saubyk saubyk changed the title channeldb+invoices: create native SQL schema for invoice storage [Epic] channeldb+invoices: create native SQL schema for invoice storage May 8, 2023
@saubyk saubyk modified the milestones: v0.17.0, v0.18.0 Aug 4, 2023
@bhandras bhandras self-assigned this Sep 27, 2023
@saubyk saubyk removed this from the v0.18.0 milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced Issues suitable for very experienced developers database Related to the database/storage of LND epic Issues created to track large feature development invoices sql
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants