Load data from databases to dataframes, the fastest way.
86
Quality
Pending
Does it follow best practices?
Impact
86%
1.04xAverage score across 10 eval scenarios
Build a database query performance optimizer that executes queries with optimized database session settings. The system should configure database session parameters before running queries to improve execution performance.
Your implementation should:
Input:
["SET work_mem = '256MB'"]"SELECT id, name, value FROM test_table WHERE value > 100"Expected Output:
Input:
["SET max_parallel_workers_per_gather = 4", "SET parallel_setup_cost = 100"]"SELECT category, COUNT(*) as count, AVG(amount) as avg_amount FROM transactions GROUP BY category"Expected Output:
Input:
["SET SESSION sql_mode = 'STRICT_ALL_TABLES'"]"SELECT product_id, product_name, price FROM products WHERE price > 50.0"Expected Output:
src/query_optimizer.py - Main implementation moduletests/test_query_optimizer.py - Test suiteProvides fast database-to-dataframe data loading with configuration support.
Install with Tessl CLI
npx tessl i tessl/pypi-connectorxdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10