< All Topics
Print

🗄️ Database Management Guide for LineagePress

The Database section (accessible via WordPress Admin → LineagePress → Dashboard → Database Tab) provides essential tools for maintaining, optimizing, and ensuring the integrity of your LineagePress database tables. Administrator permission is required to access these functions.


1. Database Operations (Deletion)

⚠️ Warning: All delete operations are permanent and cannot be undone. Always backup your data before performing any deletion.

OperationDescriptionUse When
Delete TreeRemoves all data associated with a specific family tree selected from a dropdown menu. Leaves all other trees unaffected. Requires confirmation.You need to remove a test tree or a specific unwanted tree while keeping your main data.
Delete All DataRemoves ALL genealogy data from every tree and empties all LineagePress tables. The table structure itself remains. Requires confirmation.You are starting completely fresh or migrating away from the platform and need a full cleanup.

2. Table Operations (Maintenance)

These tools help maintain database health, performance, and structure.

OperationFunctionBenefits & When to Use
Optimize TablesReclaims unused space, defragments data, and rebuilds table indexes. It’s a safe operation that doesn’t modify data.Recommended Monthly or after large imports/deletions. Improves query speed, reduces database size, and speeds up import/export.
Repair TablesFixes corrupted table structures and damaged indexes. Attempts to recover data after database crashes or unexpected server issues.Use when you see database errors, missing/corrupted records, or after a server crash.
Reinstall TablesRecreates the table structure from scratch and updates the schema to the latest version. Preserves existing data.Use after upgrading the plugin if you encounter errors about missing columns, or if the table structure becomes corrupted.

3. Database Statistics

This section displays real-time metrics about your LineagePress data:

  • Overview Metrics:
    • Total Records: The combined row count across all LineagePress tables.
    • Total Size: The total disk space utilized by the tables.
    • Warning Threshold: An alert appears if the database size exceeds 100 MB.
  • Table Details: Lists every LineagePress table, showing its Table Name, the number of Records (rows), the current Size (KB/MB/GB), and its Status ( Active or Empty).

Core LineagePress Tables

The plugin relies on several tables to organize your data:

CategoryExample TablesData Stored
Core Tableshp_trees, hp_individuals, hp_families, hp_childrenBasic structure of people, families, relationships, and tree definitions.
Detail Tableshp_events, hp_places, hp_sources, hp_citationsRecords for life events, locations, citations, and source material.
Media Tableshp_media, hp_medialinksRecords for photos and documents, and their links to individuals/events.

Best Practices

ActionFrequency/ConditionRationale
Optimize TablesMonthly or after large imports.Maintains performance and reclaims space.
Repair TablesImmediately after server/database crash.Fixes corruption and ensures data integrity.
Reinstall TablesAfter major plugin updates.Ensures the database schema is up-to-date.

Troubleshooting Quick Guide

ProblemSolution
“Table doesn’t exist” ErrorClick Reinstall Tables.
“Table is marked as crashed” ErrorClick Repair Tables.
Slow performance after large importClick Optimize Tables.
Database size growing unexpectedlyOptimize Tables and check for duplicate/test trees to delete.
Table of Contents
Powered by LineagePress
Scroll to Top