Creating Databases
From Local PGN Files
Choose Your PGN File
- Click to select a PGN file from your computer
- Supported formats:
.pgnand.pgn.zst(compressed) - The database name will auto-populate from the filename
Configure Database
- Name: Edit the auto-generated name if desired (required)
- Description: Add an optional description for organization
During conversion, you’ll see progress statistics including total games imported and conversion speed (games/second).
From Online Sources
En Croissant provides curated databases that can be downloaded directly:Choose a Database
Each database card shows:
- Size: Download size
- Games: Number of games included
- Players: Number of unique players
Database Settings
General Settings
Select any database to view and edit its settings:- Name: The display name (must be unique)
- Description: Optional notes about the database contents
- Reference Database: Mark with a star to use for opening references
Indexing
What is database indexing?
What is database indexing?
Indexing creates additional data structures that dramatically speed up searches and queries. Indexed databases are much faster for filtering games by player, date, or result.Trade-offs:
- Pros: 10-100x faster queries, required for large databases
- Cons: Increases storage size by ~20-30%
Adding Games to Existing Databases
You can append additional games to any database:Database Formats and Conversions
Supported Formats
Import formats:.pgn- Standard Portable Game Notation.pgn.zst- Zstandard compressed PGN (recommended for large files)
.db3- SQLite 3 database (En Croissant’s native format)
Exporting to PGN
Export any database back to PGN format:Maintenance and Optimization
Removing Duplicate Games
Over time, databases may accumulate duplicate games from multiple imports:Removing Empty Games
Some PGN files contain game headers without moves. Remove these:Merging Players
Player names may have variations (e.g., “Carlsen, M” vs “Carlsen, Magnus”). Merge them:Player merging is permanent. All games attributed to Player 2 will be reassigned to Player 1.
Backup Strategies
Manual Backups
- Locate Database Folder: Click the folder icon next to “Databases” to open the storage directory
- Copy
.db3Files: Copy your database files to a backup location - Schedule Regular Backups: Especially important for custom databases with annotations
Export as PGN
For long-term archival:- Export databases to PGN format (universal standard)
- PGN files can be reimported or opened in any chess software
- Consider compressing with
.zstfor storage efficiency
Exploring Database Content
Opening a Database
Double-click any database card to open the database explorer with three views:- Games View: Browse and filter all games
- Players View: See player statistics and their games
- Tournaments View: Explore events and competitions
Reference Databases
Mark a database as “Reference” (star icon) to:- Display opening statistics in analysis
- Show game continuations from master games
- View win/draw/loss percentages for positions
Troubleshooting
Database Won’t Load
If a database shows an error:- Check the error message: Hover over or select the database to see details
- File corruption: Try re-importing from the original PGN
- Format issues: Ensure the PGN file is valid
Slow Performance
- Enable indexing: Essential for databases over 10,000 games
- Remove duplicates: Reduces database size and improves speed
- Check disk space: Ensure adequate space for indexing operations
Import Errors
- Verify PGN format: Open the file in a text editor to check for corruption
- Try smaller batches: Split very large PGN files into smaller chunks
- Check file encoding: Ensure UTF-8 encoding
Best Practices
Name Consistently
Use clear, descriptive names that indicate the database content (e.g., “Lichess Elite 2023” rather than “db1”).
Index Large Databases
Always enable indexing for databases with 10,000+ games to maintain fast query performance.
Regular Maintenance
Periodically remove duplicates and empty games to keep databases clean and efficient.
One Reference Database
Mark only your most comprehensive database as the reference to avoid conflicting statistics.