News for hackers. Stuff that matters.
Re:SQLite: Outlandish Recursive Query Examples by CGamesPlay on Monday November 25, 2024 @01:13AM (#42233709)
Just to be clear, the reason I mentioned this in response to your original post is that UNION ALL doesn't have anything to do with the query recursing infinitely: it just allows the database engine to not keep previous results around. If you have a query that recurses infinitely, with UNION it will definitely exhaust the memory of the database engine, and with UNION ALL it will never stop returning results, which may exhaust the memory of the database client (unless it discards the results).

There are no comments on this comment yet.