Skip to content
This repository was archived by the owner on Jul 25, 2018. It is now read-only.

Use json for occurrences column #110

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Use json for occurrences column #110

wants to merge 6 commits into from

Conversation

Henni
Copy link
Contributor

@Henni Henni commented Apr 22, 2017

This changes the datatype of the occurrences column from TEXT to JSON.
Example data:

{"term":"saxophone","positions":[226,241,257,274,293,320,622,1759,1864,1992,2085,2201,2287,2401,9298,9488]}

We might want to use JSONB instead which is a binary format, allows quicker queries but might take up more space. Also I'm not sure if it is possible to cast our current text data to JSONB.

@Henni Henni requested review from vviro and pfent April 22, 2017 08:06
@pfent
Copy link

pfent commented Apr 22, 2017

Stalled for now, we need the data from @MusicConnectionMachine/group-2 first in the DB

@kordianbruck
Copy link
Contributor

@pfent its in now - whats next?

Copy link

@pfent pfent left a comment

Choose a reason for hiding this comment

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

We can merge then. But wait until we actually updated the database…

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants