Is the new Raspberry Pi AI Kit better than Google Coral?
135561 Views
Build Your Own AI Assistant Part 1 - Creating the Assistant
121827 Views
Control Arduino with Python using Firmata / PyFirmata
88872 Views
How to Map with LiDAR - using a Raspberry Pi Zero 2W, RPLidar and Rviz
65602 Views
Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!
60799 Views
Node-Red Automation, MQTT, NodeMCU & MicroPython
53953 Views
How to Keep your Raspberry Pi happy
How to Install Pi-Apps on a Raspberry Pi
Pikon II, The Ultimate DIY Raspberry Pi Camera!
Pico Plotter
LEGO Gets Lights & Sound with Tiny FX
Thinkman
DuckDB - Fast, free analytics
1h 36m
Obsidian
1h 0m
Getting Started with C on the Raspberry Pi Pico
0h 50m
Running K3s on Raspberry Pi
1h 28m
From Docker to Podman
1h 2m
MicroPython Robotics Projects with the Raspberry Pi Pico
0h 54m
Learn how to Program in Python, C, Rust, and more.
Learn Linux from the basics to advanced topics.
Learn how to use a Raspberry Pi Pico
Learn MicroPython the best language for MicroControllers
Learn Docker, the leading containerization platform. Docker is used to build, ship, and run applications in a consistent and reliable manner, making it a popular choice for DevOps and cloud-native development.
Learn how to build SMARS robots, starting with the 3D Printing the model, Designing SMARS and Programming SMARS
Learn how to build robots, starting with the basics, then move on to learning Python and MicroPython for microcontrollers, finally learn how to make things with Fusion 360.
Learn Python, the most popular programming language in the world. Python is used in many different areas, including Web Development, Data Science, Machine Learning, Robotics and more.
Learn how to create robots in 3D, using Fusion 360 and FreeCAD. The models can be printed out using a 3d printer and then assembled into a physical robot.
Learn how to create Databases in Python, with SQLite3 and Redis.
KevsRobots Learning Platform
77% Percent Complete
By Kevin McAleer, 3 Minutes
This lesson is a checklist of practical steps you can apply to most DuckDB analytics workloads.
Seeing new terms (threads, memory limit, statistics, EXPLAIN)? See the Beginner glossary.
PRAGMA threads = 8; -- use more CPU cores PRAGMA memory_limit = '2GB'; -- cap memory usage
You try it Set threads to the number of cores you have; re-run a heavy aggregation and time it
You try it
CREATE OR REPLACE VIEW v_orders_clean AS SELECT * FROM orders WHERE order_status = 'COMPLETE'; CREATE OR REPLACE TABLE orders_daily AS SELECT order_date, SUM(amount) AS revenue FROM v_orders_clean GROUP BY order_date;
You try it Convert one reused view in your project into a materialized table and compare timings
DuckDB can collect column stats to guide the optimizer.
ANALYZE; -- whole database -- or ANALYZE my_table; -- a specific table
You try it Run ANALYZE after bulk loads; compare query plans before/after with EXPLAIN
ANALYZE
EXPLAIN
EXPLAIN SELECT c.category, SUM(o.amount) AS revenue FROM orders o JOIN customers c USING (customer_id) WHERE o.order_date >= DATE '2024-01-01' GROUP BY c.category;
How to read:
You try it Add an index-like hint via materialization: create a filtered table orders_2024 and re-check EXPLAIN
orders_2024
Enable profiling per session, run a query, then inspect timings.
PRAGMA enable_profiling = json; -- or query_tree / query_profile PRAGMA profiling_output = 'exports/profile.json'; SELECT c.category, SUM(o.amount) AS revenue FROM orders o JOIN customers c USING (customer_id) WHERE o.order_date >= DATE '2024-01-01' GROUP BY c.category;
Then open exports/profile.json in your editor. Look for:
exports/profile.json
Hash Join
Aggregate Hash
You try it Turn profiling off: PRAGMA enable_profiling = none; Change the filter to a tighter range and compare operator timings
PRAGMA enable_profiling = none;
You try it Rewrite a CSV dataset to Parquet and compare read time for a simple aggregation
See also: Troubleshooting DuckDB for quick fixes that impact performance (file formats, partitions, stats).
< Previous Next >
You can use the arrows β β on your keyboard to navigate between lessons.
β β