You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current annotation table originated from an ElasticSearch index, and does not make full use of relational database semantics.
Ideally we'd like a set of tables which:
Enable fast queries
Makes use of simple and direct foreign keys for relationships with other objects like groups and users
Has an auto-increment primary key
Difficulties this causes us
This has some bad outcomes for us:
Joining from the annotation to the user table is difficult and inefficient
The annotation table contains a lot of information, and is very large
This makes it extremely slow to query
There is no index on the created column
There is complicated logic required to perform reporting and certain types of query over the annotation table for the email digest functionality. Reporting in particular is a sore point, as we have to replicate the structure into a whole new table, which prevents us from easily changing anything to do with annotations. Ad-hoc reporting is basically off the table.
Tasks
The problem
Our current annotation table originated from an ElasticSearch index, and does not make full use of relational database semantics.
Ideally we'd like a set of tables which:
Difficulties this causes us
This has some bad outcomes for us:
There is complicated logic required to perform reporting and certain types of query over the annotation table for the email digest functionality. Reporting in particular is a sore point, as we have to replicate the structure into a whole new table, which prevents us from easily changing anything to do with annotations. Ad-hoc reporting is basically off the table.
The plan so far
The text was updated successfully, but these errors were encountered: