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

Create index on payload.service_md5 of measturements table #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eitoball
Copy link
Member

@eitoball eitoball commented Oct 16, 2017

This PR should create an index on service_md5 in payload column of measurements table. I would like to create index because I would like to use this data to check existence of same data. (See #32) Without index, query like SELECT COUNT(id) FROM measurements WHERE payload ->> 'service_md5' would do whole table scan.

Connected to Safecast/safecastapi#352

@eitoball eitoball self-assigned this Oct 16, 2017
@matschaffer matschaffer changed the title Creat index on payload.service_md5 of measturements table Create index on payload.service_md5 of measturements table Jan 14, 2018
@auspicacious auspicacious deleted the add-index-to-payload-service_md5 branch November 29, 2019 07:27
@eitoball eitoball restored the add-index-to-payload-service_md5 branch November 29, 2019 21:31
@eitoball eitoball reopened this Nov 29, 2019
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