-
Notifications
You must be signed in to change notification settings - Fork 184
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 :
RecordedDatais the same as currently used in PyScadaRecordedData2that store everything in aFloatFieldRecordedData3is asRecordedData2with aCharFieldcolumnRecordedData4is the same asRecordedData3RecordedData5is the same as RecordedData4 but theCharFieldis aTextField
in dbTest/a.py you have the result :
RecordedData2is quite the same asRecordedData: slightly faster and smallerRecordedData3is quite the same asRecordedData2: slightly slower and largerRecordedData4store a text and is larger thanRecordedData3RecordedData5is 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