-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Description
The idea is to create a new recorded data table that is more simple to store numbers and boolean (one field) and allows to store strings.
I made some test about the difference using one field for boolean, integer and floats or separated fields as currently, and a field for strings.
Here is the django app used to test :
dbTest.zip
in dbTest/models.py
you have :
RecordedData
is the same as currently used in PyScadaRecordedData2
that store everything in aFloatField
RecordedData3
is asRecordedData2
with aCharField
columnRecordedData4
is the same asRecordedData3
RecordedData5
is the same as RecordedData4 but theCharField
is aTextField
in dbTest/a.py
you have the result :
RecordedData2
is quite the same asRecordedData
: slightly faster and smallerRecordedData3
is quite the same asRecordedData2
: slightly slower and largerRecordedData4
store a text and is larger thanRecordedData3
RecordedData5
is quite the same asRecordedData4
My proposition is to use the RecordedData4 or RecordedData5 as the new table.
@trombastic, what do you think ?
Metadata
Metadata
Assignees
Labels
No labels