import { createPostgresPool } from './src/lib/postgres.mjs'; const pool = createPostgresPool({ connectionString: process.env.POSTGRES_URL }); async function main() { console.log("Memory before:", process.memoryUsage().heapUsed / 1024 / 1024, "MB"); const result = await pool.query(` SELECT payload FROM trade_execution_results WHERE payload->>'status' = 'submitted' LIMIT 1000 `); console.log("Memory after fetch:", process.memoryUsage().heapUsed / 1024 / 1024, "MB"); process.exit(0); } main().catch(console.error);