Creating a Database
Choose Creation Method
Select how to create your database:
- Empty Database
- From PGN
- From Online Tournament
Create a blank database:
- Enter a name for your database
- Choose a location to save the
.db3file - Click Create
Databases are stored as
.db3 files (SQLite format) in your app’s database folder. Profile databases are automatically created when you create a profile.Database Types
Local Game Databases
Standard databases you create:- Full read/write access
- Can add, edit, and delete games
- Can be exported, merged, or deleted
- Indexed for fast searching
Profile Databases
Automatically created for each profile:- Stored as
profile_{id}.db3 - Contains all games from linked accounts
- Used for personal statistics and tracking
- Not shown in the main databases list (accessed via Profiles)
Online Tournament Databases
Created from online tournament imports:- Read-only (linked to online source)
- Marked with “online” source tag
- Can be merged into local databases
- Automatically named after the tournament
Importing Large PGN Files
For master game collections or large archives:Prepare PGN File
Ensure your PGN file is:
- Valid PGN format
- UTF-8 encoded
- Not corrupted (test with a PGN viewer first)
Monitor Progress
The import shows:
- Games processed per second
- Total games imported
- Elapsed time
- Current batch
Database Operations
Viewing Database Contents
Filtering Games
Use the filter panel to narrow down games:By Player
By Player
- Search for player names (White or Black)
- Filter by specific player side
- Supports partial name matching
By Date
By Date
- Date range selector
- From date, to date
- Filter by year, month, or specific dates
By Result
By Result
- White wins (1-0)
- Black wins (0-1)
- Draws (1/2-1/2)
- Unknown/ongoing (*)
By Rating
By Rating
- Minimum/maximum Elo range
- Filter by White or Black rating
- Find games within specific rating bands
By Opening
By Opening
- Search by ECO code
- Filter by opening name
- Find games in your repertoire
Sorting Games
Sort game lists by:- Date: Newest or oldest first
- Plies: Shortest or longest games
- Rating: Highest or lowest rated games
- White/Black: Alphabetically by player name
Exporting Databases
Exporting large databases may take a few minutes. The PGN file can be imported into other chess software or shared with others.
Reference Databases
Set a database as a reference database for position searches:Only one database can be the reference database at a time. This is useful for searching your personal games or a master game collection.
Merging Databases
Combine multiple databases into one:Database Maintenance
Optimizing Databases
Over time, databases can become fragmented:- Automatic Optimization: Runs after large imports
- Manual Optimization: Available in database settings
- Rebuilds indexes for faster searches
- Reclaims unused space
- Improves query performance
Deleting Databases
Database Statistics
Each database shows:- Game Count: Total number of games
- Player Count: Unique players in the database
- Event Count: Number of tournaments/events
- Storage Size: Disk space used by the database file
- Date Range: Earliest and latest game dates
Advanced Database Features
Database Schema
Obsidian Chess Studio uses a normalized SQLite schema:- Player names
- Event names
- Dates
- Positions (FEN)
Custom SQL Queries
For advanced users, you can access the database directly:- Locate the
.db3file in your database folder - Open with any SQLite client (DB Browser for SQLite, etc.)
- Run custom queries for advanced statistics
Direct database access is for advanced users only. Always back up before making changes.
Best Practices
Organize by Theme
Create separate databases for different purposes:
- Personal games (use profiles instead)
- Master games by era
- Opening-specific collections
- Tournament archives
Regular Exports
Periodically export important databases to PGN as backups.
Use Reference Wisely
Set your most frequently searched database (e.g., master games) as the reference database.
Clean Duplicates
When merging databases, let the app handle deduplication automatically.
Troubleshooting
Database Won’t Open
- Check if the file is corrupted
- Verify file permissions (read/write access)
- Try opening in a SQLite browser to verify integrity
- Restore from PGN backup if available
Slow Search Performance
- Optimize the database (Settings > Optimize)
- Ensure indexes are built (automatic after import)
- For very large databases, consider splitting by year or event
Import Errors
- PGN Parse Errors: Fix the PGN file format
- Duplicate Games: Normal - duplicates are skipped
- Memory Issues: Close other applications or split PGN into smaller files
Missing Games After Import
- Check the import summary for errors
- Verify the PGN file contains valid games
- Search by different filters (some games may have missing metadata)
- Check if games were deduplicated (already existed)
