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.

@Neil-LL Neil-LL moved this from 📋 Backlog to 🔖 Ready in lnd v0.16.0 Oct 11, 2022
@Neil-LL Neil-LL moved this from 🔖 Ready to 📋 Backlog in lnd v0.16.0 Oct 11, 2022
@saubyk saubyk linked a pull request Nov 17, 2022 that will close this issue
@saubyk saubyk moved this from 📋 Backlog to 🏗 In progress in lnd v0.16.0 Nov 17, 2022
@saubyk saubyk linked a pull request Nov 30, 2022 that will close this issue
@saubyk saubyk modified the milestones: v0.16.0, v0.16.1 Feb 14, 2023
@saubyk saubyk removed this from lnd v0.16.0 Feb 14, 2023
@saubyk saubyk modified the milestones: v0.16.1, v0.17.0 Mar 13, 2023
@saubyk saubyk added this to lnd v0.17 Mar 26, 2023
@saubyk saubyk moved this to 🏗 In progress in lnd v0.17 Mar 26, 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 removed this from lnd v0.17 Aug 4, 2023
@saubyk saubyk modified the milestones: v0.17.0, v0.18.0 Aug 4, 2023
@saubyk saubyk added this to lnd v0.18 Aug 8, 2023
@saubyk saubyk moved this to 🏗 In progress in lnd v0.18 Aug 8, 2023
@bhandras bhandras self-assigned this Sep 27, 2023
@Roasbeef Roasbeef moved this from 🏗 In progress to 👀 In review in lnd v0.18 Feb 14, 2024
@saubyk saubyk removed this from the v0.18.0 milestone Mar 7, 2024
@saubyk saubyk removed this from lnd v0.18 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