> Or are people running each query as a separate Beancount invocation from scratch?
How else would you do it? Do you never script anything? Every query you make is done manually from the bean-query repl?
I have a script that runs:
- bean-download needs-update (a 3rd party script, I can't get all the context sitting in the engine)
- beangulp to import things (ditto, plus "extract" and "archive" operations requires 2 separate invocations)
- autobean-format (though I don't think this actually uses beancount to load entries and does its own thing)
- bean-price (another 3rd party script that requires yet another parsing of all entries)
- several bean-queries to sanity check various things (any flags with !, any vacation not in a leaf account, anything without a payee, etc)
- scripts that build spending trends, net worth trends, graph and chart things.
If each invocation of beancount to parse the entries costs 600ms my script can easily take 6+ seconds to run. That is tolerable but annoying when done on the command line but I've been converting it to a simple web-app to make things more visible for my wife and having to wait 6-10 seconds to load a web page is obviously ridiculous.