Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Openlobby Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
openlobby
Openlobby Server
Commits
26ff086d
Commit
26ff086d
authored
7 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
Decision to add relational database and choose PostgreSQL.
parent
e5e10da0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/architecture/decisions/0011-add-relational-database.md
+26
-0
26 additions, 0 deletions
docs/architecture/decisions/0011-add-relational-database.md
docs/architecture/decisions/0012-use-postgresql.md
+25
-0
25 additions, 0 deletions
docs/architecture/decisions/0012-use-postgresql.md
with
51 additions
and
0 deletions
docs/architecture/decisions/0011-add-relational-database.md
0 → 100644
+
26
−
0
View file @
26ff086d
# 11. Add relational database
Date: 2017-12-15
## Status
Accepted
## Context
Number of document types which does not use Elasticsearch's fulltext
capabilities is growing. Recently released Elasticsearch 6 is bringing one type
per index which means management of many indices.
## Decision
We will add relational database as primary database. Elasticsearch will be used
for denormalized reports and related data intended for fulltext search.
## Consequences
*
Proper relations in data on database level.
*
Simplification in data management and schema migrations.
*
If ORM is used then GraphQL types may be derived without additional effort
and translations between document types and GraphQL types.
*
Less indices in Elasticsearch.
This diff is collapsed.
Click to expand it.
docs/architecture/decisions/0012-use-postgresql.md
0 → 100644
+
25
−
0
View file @
26ff086d
# 12. Use PostgreSQL
Date: 2017-12-16
## Status
Accepted
## Context
We want to add relational database.
## Decision
We will use PostgreSQL. It's a mature database with handy features like JSON
and hstore data types. It's fully ACID compliant including schema changes. It
has very good support in Django's ORM.
Another popular option is MySQL/MariaDB. But because it has a major bug
`#28727`
(10 years since it has been reported and it's still not fixed) breaking ACID in
schema changes it can't be used for any serious project.
## Consequences
We will have mature relatonal database with handy JSON and hstore data types.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment