jbms / beancount-import

Web UI for semi-automatically importing external data into beancount
GNU General Public License v2.0
392 stars 101 forks source link

Limit the search for posting matches in extreme cases #224

Open jktomer opened 9 months ago

jktomer commented 9 months ago

Sometimes, particularly when there are a couple transactions with many smallish postings (like big Amazon orders), the combinatorial explosion of possible matching sets of transactions becomes intractable to search. These two small changes set limits on both the depth and breadth of searches for matching posting sets, because failing to find the right combination of transactions is preferable to pegging the CPU until beancount-import is forcibly killed.