Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 786
    • Issues 786
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • briarbriar
  • Merge requests
  • !1145

Add blocks table to database

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged akwizgran requested to merge 1595-blocks-table into 1240-large-messages Jun 19, 2019
  • Overview 11
  • Commits 3
  • Pipelines 2
  • Changes 26

This branch adds a blocks table to the database and migrates message bodies from the messages table to the blocks table. This is the first step in adding multi-block message support to the DB.

The migration and subsequent compaction takes a significant amount of time - about a minute on a slow phone with ~750 messages (the default when creating test data).

The branch also modifies the existing migrations to close their statements. As far as I know the statements would have been closed automatically when the respective connection was closed, so I don't think there was a significant resource leak.

Closes #1595

Edited Jun 21, 2019 by akwizgran
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1595-blocks-table