Skip to content

Database improvement #978

@meomancer

Description

@meomancer

Problem

Currently our measurements is increasing fast, making our query getting slow
Currently we are saving the value in foreign key
[measurement] -> [quantity]

This query takes a lot ot time to execute it

Solution

  • Make the measurements flat table [id], [time], [value], [parameter]
  • We also need to consider partitions.
    - Partition makes query fast as it is create table per well, as 1 well can contains millions measurements
  • Quantity concept also being done on the other model, we need to make it as flat table and remove it

Metadata

Metadata

Assignees

Labels

Size: 40Ouch this is going to take a week.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions