lnd/sqldb/sqlc
Abdullahi Yunus ac2cec462c
graph: use UNION for isPublicNode query
In this commit we updated the IsPublicV1Node query to use UNION
instead of OR, since sqlite struggles to efficiently use
multiple indexes in a single query involving OR conditions across
different columns.

We use UNION ALL since the query doesn't care about duplicates.
2025-12-23 21:04:36 +01:00
..
migrations sqldb: use the new schema 2025-08-14 11:59:09 +02:00
queries graph: use UNION for isPublicNode query 2025-12-23 21:04:36 +01:00
amp_invoices.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
db.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
db_custom.go graph/db: freeze sql migration queries 2025-11-12 22:54:06 +08:00
db_custom_test.go scripts: add sql slices workaround to sqlc gen script 2025-07-22 17:14:55 +02:00
graph.sql.go graph: use UNION for isPublicNode query 2025-12-23 21:04:36 +01:00
invoice_events.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
invoices.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
migration.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
models.go sqldb+graph/db: prefix graph SQL objects with "graph_" 2025-07-15 18:40:16 +02:00
querier.go sqldb: add UpsertSelfNode query 2025-12-03 13:08:31 +02:00