Git Product home page Git Product logo

Comments (4)

trombastic avatar trombastic commented on May 22, 2024

a float64 floatfield has only 52 bits for the number the rest is for the exponent, so only 32 bit integers can be stored, this is Okay for most values, but we have to drop INT64 and UINT64 data types. I'm not sure what would be the performance penalty for having a char or textfield as column in the DB, but i suspect for bigger queries it would be not so good. With the new option to have more than one data table/backend would it be possible to have a separate Table for variables that have to store data as str?

from pyscada.

clavay avatar clavay commented on May 22, 2024

Ok, so we need 3 fields:

  • BigIntegerField for integers (with the shift technique for unit64),
  • FloatField for floats,
  • CharField or TextField for strings.

I don't know if there is a performance penalty to have a char or text column for the variable not having data in it, I will try it.

One solution with the new data source architecture could be to separate this in 3 tables:

  • RecordedDataInteger,
  • RecordedDataFloat,
  • RecordedDataString.

One question is what should the manager do if the variable value class is:

  • string and the value to store is an integer or a float,
  • float and the value to store is an integer or a string,
  • integer and the value is a float or a string ?

from pyscada.

trombastic avatar trombastic commented on May 22, 2024

One question is what should the manager do if the variable value class is:

in my opinion either drop the value and throw an error or convert to the appropriate data type

from pyscada.

clavay avatar clavay commented on May 22, 2024

Ok so finally all the values of a variable will be in only one table.

from pyscada.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.