Skip to content

Shrink DB Size#185

Open
mjiori wants to merge 6 commits into
qafrom
shrink-db-size
Open

Shrink DB Size#185
mjiori wants to merge 6 commits into
qafrom
shrink-db-size

Conversation

@mjiori

@mjiori mjiori commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

In order to shrink the Postgres database, changes need to be made to code referencing the PREMIS event's event_type. The event_type will now be stored as an int, not a string, to save space. We can also save these values as constants, and continue to use them in code.

@mjiori mjiori requested a review from diamondap December 16, 2025 07:30
@mjiori mjiori changed the base branch from master to qa December 16, 2025 07:45

@diamondap diamondap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far. See comment on util/util.go. Looks like this is a work in progress and we can't fully test it until other PRs related to db changes have been merged. We'll circle back to this one later.

Comment thread util/util.go

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Convert functions in util/util.go need to be fleshed out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants