Rusty Russell
fa7d732ba6
lightningd: allow a connection to specify db batching.
...
Previous commit was a hack which *always* batched where possible, this
is a more sophisticated opt-in varaint, with a timeout sanity check.
Final performance for cleaning up 1M pays/forwards/invoices:
```
$ time l1-cli autoclean-once succeededpays 1
{
"autoclean": {
"succeededpays": {
"cleaned": 1000000,
"uncleaned": 26895
}
}
}
real 6m9.828s
user 0m0.003s
sys 0m0.001s
$ time l2-cli autoclean-once succeededforwards 1
{
"autoclean": {
"succeededforwards": {
"cleaned": 1000000,
"uncleaned": 40
}
}
}
real 3m20.789s
user 0m0.004s
sys 0m0.001s
$ time l3-cli autoclean-once paidinvoices 1
{
"autoclean": {
"paidinvoices": {
"cleaned": 1000000,
"uncleaned": 0
}
}
}
real 6m47.941s
user 0m0.001s
sys 0m0.000s
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Changelog-Added: JSON-RPC: `batching` command to allow database transactions to cross multiple back-to-back JSON commands.
2022-09-22 15:19:46 +02:00
..
2018-06-18 12:45:00 +02:00
2022-09-22 15:19:46 +02:00
2015-07-18 10:46:53 +09:30
2022-08-22 11:21:59 -04:00
2018-03-04 03:22:32 +01:00
2019-02-18 02:42:29 +00:00
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-05-14 11:43:46 +09:30
2018-06-08 17:56:48 +02:00
2015-11-20 06:45:19 +10:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-08-22 11:21:19 -04:00
2020-10-21 19:34:39 +02:00
2022-05-18 10:19:16 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-09-22 15:19:46 +02:00
2022-09-18 14:19:16 +02:00
2022-09-12 14:00:41 +02:00
2022-09-22 15:19:46 +02:00
2022-09-22 15:19:46 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-08 00:36:51 +03:00
2022-09-22 10:41:05 +02:00
2022-09-14 17:46:43 +02:00
2022-07-17 08:51:02 +09:30
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-22 15:19:46 +02:00
2022-09-22 15:19:46 +02:00
2022-09-22 15:19:46 +02:00
2022-09-14 13:14:10 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-07-14 12:24:48 -05:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-08 00:36:51 +03:00
2022-09-12 14:00:41 +02:00
2022-09-22 17:19:11 +09:30
2022-09-12 14:00:41 +02:00
2022-09-22 17:19:11 +09:30
2022-09-12 14:00:41 +02:00
2022-09-22 15:19:46 +02:00
2022-09-12 14:00:41 +02:00
2022-09-22 15:19:46 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-14 13:14:10 +02:00
2022-09-12 14:00:41 +02:00
2022-09-14 13:14:10 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-07-14 12:24:48 -05:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-14 13:14:10 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-08-19 10:27:09 -04:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-09-14 13:14:10 +02:00
2022-09-12 14:00:41 +02:00
2022-09-22 15:19:46 +02:00
2022-09-08 00:36:51 +03:00
2015-07-20 14:07:40 +09:30
2015-07-20 14:07:40 +09:30
2022-09-22 15:19:46 +02:00
2022-09-22 11:41:11 +02:00
2022-09-21 11:25:47 +02:00
2022-07-21 15:21:12 -05:00
2022-08-22 11:21:19 -04:00
2022-07-12 13:59:46 -05:00
2022-09-22 17:19:11 +09:30