Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace data_source table key with hash key #46

Open
cbogart opened this issue Mar 14, 2019 · 0 comments
Open

Replace data_source table key with hash key #46

cbogart opened this issue Mar 14, 2019 · 0 comments

Comments

@cbogart
Copy link
Contributor

cbogart commented Mar 14, 2019

Data source implementation currently requires a full search of the data source table linked with every content table in order to add an item without risking duplication. Instead of a sequential reference ot the data_source table, use a 128- or 256-bit SHA-1 as key in each substantive table (i.e. discourse part, content, contribution, annotation, user, etc), so that a simple upsert can be done on new data without checking if the data source entry exists already for every kind of entity.

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

No branches or pull requests

1 participant