How is it right to store data in the SQL format?



  • How is it right or how does it usually store data in the SQL format? String type asset



  • The SQL mass is most likely to be stored with a separate table, one element of the mass in each line related to the main external key table.

    That is, if the main substance lies in tablese SomeTable c PK SomeTableID, the mass may be in SomeTableArray:

    ArrayValueID | SomeTableID (FK) | Value
               1 |                1 | string1
               2 |                1 | string2
               3 |                2 | string3
               4 |                2 | string4
    

    It'll add an extra reading request, but you'll have a good job looking. And it's much easier to add a new element to the mass.

    All other options - storage in the form of a line (json/xml/csv) - will force you in every search, for example string2, to choose all values from the base to memory and to swap them there. It will not be possible to work with them fully at the OBD level.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2