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

insertion of data on the same time point should be managed #71

Open
mdrio opened this issue Dec 4, 2020 · 2 comments
Open

insertion of data on the same time point should be managed #71

mdrio opened this issue Dec 4, 2020 · 2 comments
Assignees

Comments

@mdrio
Copy link
Contributor

mdrio commented Dec 4, 2020

No description provided.

@mdrio
Copy link
Contributor Author

mdrio commented Dec 4, 2020

At this moment it is possible to write multiple data for the same time point. It should be avoided, raising an exception as the value already exists and/or providing an upsert function

@ilveroluca ilveroluca self-assigned this Apr 29, 2021
@ilveroluca
Copy link
Member

Try coalescing records when reading them. This can be done in the web service, like get_latest_activity does. Or it can be moved down into the database query, but I don't think PgSQL has a function to merge JSON dictionaries that we would need.

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

2 participants