Tutorials
Tutorials
Learn Machbase through hands-on tutorials. Each tutorial walks you through a real-world scenario from start to finish.
Tutorial Overview
Tutorial | Table Type | Difficulty | Time | What You’ll Learn |
---|---|---|---|---|
IoT Sensor Data | Tag Table | Beginner | 15 min | Collect and analyze sensor data from multiple devices |
Application Logs | Log Table | Beginner | 15 min | Store and search application logs efficiently |
Real-time Analytics | Volatile Table | Intermediate | 20 min | Build a real-time monitoring dashboard |
Reference Data | Lookup Table | Beginner | 10 min | Manage device registry and metadata |
Before You Start
Make sure you have:
- Machbase installed and running
- machsql command-line client available
- Basic understanding of SQL
- Completed the Getting Started section
Tutorial Format
Each tutorial follows this structure:
- Scenario - Real-world problem description
- What You’ll Build - Expected outcome
- Step-by-Step Instructions - Detailed walkthrough
- Try It Yourself - Practice exercises
- Next Steps - How to expand on what you learned
Learning Path
We recommend following the tutorials in order:
Tutorial 1: IoT Sensor Data
↓
Tutorial 2: Application Logs
↓
Tutorial 3: Real-time Analytics
↓
Tutorial 4: Reference Data
However, feel free to jump to any tutorial that matches your needs!
Tutorial 1: IoT Sensor Data
Perfect for: Anyone working with sensor devices, IoT platforms, or industrial monitoring
You’ll learn:
- How to use Tag tables for sensor data
- Storing millions of sensor readings
- Querying by sensor ID and time range
- Using automatic rollup statistics
- Implementing data retention policies
Tutorial 2: Application Logs
Perfect for: Developers managing application logs, system administrators
You’ll learn:
- How to use Log tables for event data
- Storing high-volume application logs
- Full-text search with SEARCH keyword
- Time-based queries with DURATION
- Log retention and cleanup
Tutorial 3: Real-time Analytics
Perfect for: Building dashboards, real-time monitoring systems
You’ll learn:
- How to use Volatile tables for in-memory data
- UPDATE and DELETE operations
- Fast key-based lookups
- Building live status boards
- Combining with other table types
Tutorial 4: Reference Data
Perfect for: Managing master data, device registries, configuration
You’ll learn:
- How to use Lookup tables
- Storing reference/master data
- JOIN operations with time-series data
- Maintaining device metadata
After Completing Tutorials
Once you’ve finished, you’ll be ready to:
- Choose the right table type for your use case
- Design efficient Machbase schemas
- Write optimized queries
- Implement production-ready solutions
Continue learning:
- Core Concepts - Deeper understanding of Machbase
- Common Tasks - Everyday operations
- Table Types Deep Dive - Advanced features
Need Help?
- Review Basic Concepts
- Check Troubleshooting Guide
- Refer to SQL Reference
Ready to start? Begin with Tutorial 1: IoT Sensor Data!
Last updated on