bkpr: add payment_id parameter to listaccountevents to filter events.

When you have *lots* of events in your bkpr database looking up a
specific event via calling bkpr-listaccountevents and using jq or
grep to filter gets very slow (and wasteful of CPU and disk resources).
This commit adds the paremeter payment_id to the call to filter for a
specific payment id via a where clause in the request to the database of bkpr.

Changelog-Added: Plugins: Add payment_id parameter to bkpr-listaccountevents to filter events.
This commit is contained in:
michael1011
2024-08-06 14:56:27 +02:00
committed by ShahanaFarooqui
parent 406d6a6e22
commit d32433a553
12 changed files with 250 additions and 129 deletions

View File

@@ -685,7 +685,8 @@
"Bkpr-ListAccountEvents.events[].type": 2
},
"Bkpr-listaccounteventsRequest": {
"Bkpr-ListAccountEvents.account": 1
"Bkpr-ListAccountEvents.account": 1,
"Bkpr-ListAccountEvents.payment_id": 2
},
"Bkpr-listaccounteventsResponse": {
"Bkpr-ListAccountEvents.events[]": 1
@@ -3872,6 +3873,10 @@
"added": "pre-v0.10.1",
"deprecated": null
},
"Bkpr-ListAccountEvents.payment_id": {
"added": "v24.08",
"deprecated": null
},
"Bkpr-ListBalances": {
"added": "pre-v0.10.1",
"deprecated": null