Skip to content

Commit

Permalink
docs: improve database page
Browse files Browse the repository at this point in the history
  • Loading branch information
larbish committed Nov 8, 2024
1 parent 92fb407 commit 5c5759a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/docs/6.advanced/4.database.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Content management in Content v3 involves three key steps, which are designed to

## Generating Database Dump

For each collection in your project, the module reads the content from the defined source and parses it into an Abstract Syntax Tree (AST). It also creates a specific table for each collection based on its schema. The parsed content is then inserted into the corresponding table, ensuring that the data structure aligns with the defined schema for optimal querying.
For each collection in your project, the module reads the content from the defined source and parses it into an Abstract Syntax Tree (AST). It creates a specific table for each collection based on its schema. The parsed content is then inserted into the corresponding table, ensuring that the data structure aligns with the defined schema for optimal querying. Everything is then saved in a dump file.

## Restoring Dump on Cold Start

During runtime, when the application executes the first query to retrieve content, the module reads the generated dump from the previous step and restores it into the target database. This process is efficient and minimizes the time taken to access content.
During runtime, when the application executes the first query to retrieve content, the module reads the generated dump from the previous step and restores it into the target database. This process is fast and optimized for each deployment mode and platform.

The module employs a special integrity check mechanism to ensure that the database is updated with the latest content. This same integrity check also prevents duplicate imports, maintaining the integrity and accuracy of the data stored.

Expand Down

0 comments on commit 5c5759a

Please sign in to comment.