Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Optimize Database Contents #310

Open
ehennenfent opened this issue Sep 10, 2018 · 2 comments
Open

Optimize Database Contents #310

ehennenfent opened this issue Sep 10, 2018 · 2 comments
Labels
blocked-by-upstream A bug or defect that requires upstream changes. enhancement icebox Lower than low priority.

Comments

@ehennenfent
Copy link
Contributor

We pickle a lot of JSON objects and write their full contents into the database. This is less-than-ideal, since we can't use those columns for queries, and it wastes space. We should break these items apart into columns and store those columns directly in the database whenever possible.

@ehennenfent
Copy link
Contributor Author

Per pag's suggestion, we can instead switch the BLOB columns over to JSON columns, so we don't have to clutter up the database with a bunch of useless columns either.
http://docs.sqlalchemy.org/en/latest/core/type_basics.html#sqlalchemy.types.JSON

@ehennenfent
Copy link
Contributor Author

ehennenfent commented Sep 13, 2018

Ugh, SQLAlchemy has support for it, but only in the development version. We'll icebox this until it's released.

@ehennenfent ehennenfent added icebox Lower than low priority. blocked-by-upstream A bug or defect that requires upstream changes. and removed low priority labels Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked-by-upstream A bug or defect that requires upstream changes. enhancement icebox Lower than low priority.
Projects
None yet
Development

No branches or pull requests

1 participant