What is Nostr?
Baptiste Mispelon /
npub1zp6…90dx
2024-10-16 08:55:12

Baptiste Mispelon on Nostr: Today I find myself having to parse ~1 million SQL queries (of various complexity) ...

Today I find myself having to parse ~1 million SQL queries (of various complexity) using #python

Here's a runtime of the few options I tried, in case anyone is interested (incidentally, in the order in which I tried them):

- sqlparse: 1h estimated (I killed the process before it finished)
- sqlglot: finished in about 15 min, failed to parse about 900 queries.
- sqloxide: finished in 2 minutes (!!!), failed to parse 10 queries. 🏆
Author Public Key
npub1zp6qqd64yg8rx5295xrvtkr7fujxdsnfy829napflma0rq0n4fcqwy90dx