*** ilan has quit IRC | 00:48 | |
*** nesciens has quit IRC | 18:14 | |
*** joar has quit IRC | 18:14 | |
*** nesciens has joined #npoacct | 18:14 | |
*** joar has joined #npoacct | 18:15 | |
*** ChanServ sets mode: +o joar | 18:15 | |
*** bkuhn has joined #npoacct | 20:50 | |
joar | greetings bkuhn! | 21:17 |
---|---|---|
bkuhn | joar: greetings! | 21:18 |
bkuhn | Sorry I wasn't online much last week. | 21:18 |
joar | bkuhn: Neither was I, it's christmas time after all :) | 21:18 |
joar | bkuhn: it seems that the `ledger xml` command takes 18 minutes with the conservancy data as input. | 21:19 |
joar | currently `ledger xml` is used for both transaction and balance data. | 21:19 |
joar | and the output is 1.5G of xml | 21:22 |
joar | bkuhn: that is, if you can be bothered with this today. | 21:24 |
bkuhn | joar: I haven't used the XML output. | 22:16 |
bkuhn | I am not surprised it takes that long. | 22:16 |
bkuhn | Ledger is very slow. | 22:16 |
bkuhn | it's one of the reasons I think the API is important --- but we need to turn ledger into "lib-ledger" so that we don't have to reload the file on every operation. | 22:16 |
joar | do you mean 'lib-ledger' as in SQL being an alternative backend, or do you mean 'lib-ledger' as in parsing the files by other means than using ledger as a middleman? | 22:22 |
joar | bkuhn: ^^ | 22:24 |
bkuhn | joar: I assume your API still calls Ledger from the command line each time? | 22:40 |
bkuhn | (on each API call, I mean?) | 22:40 |
joar | bkuhn: yes | 22:49 |
bkuhn | joar: right, so my point is: we have to turn ledger into something that is library, that only rereads the files when they change. | 23:06 |
bkuhn | joar: are you using the XML data as part of your API now? | 23:06 |
joar | bkuhn: Yeah, one solution might be to split it up into smaller chunks in the end. | 23:11 |
joar | I use the XML data for both account balance and transactions. | 23:11 |
joar | I only use the ledger-file format when writing data. | 23:12 |
bkuhn | oh, hm. | 23:26 |
bkuhn | joar: how do you handle a modified transaction then? | 23:31 |
joar | delete the old one, insert the new | 23:32 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!