import duckdb, time T0 = time.time() def con(): c = duckdb.connect() c.execute("SET threads=4; SET memory_limit='6GB'; SET temp_directory='/w/tmp/duck'; SET max_temp_directory_size='5GB'; SET preserve_insertion_order=false") return c def log(*a): print(f"[{time.time()-T0:6.1f}s]", *a, flush=True)