Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>How should I keep the structure dynamic without having to revisit my standard layout to accommodate new fields of data, or different structure?</p> </blockquote> <p>Basically, you pivot the normal database idea of columns and rows.</p> <p>You have a data name table, which consists of the unique names of the fields of data, and an indicator to tell the import process what type of data is stored, like a date, timestamp, or integer.</p> <p>You have a data table, which contains the data name id, a sequence number, the data field, and a foreign key to identifying information.</p> <p>The sequence number is used to differentiate between different values of the same data name.</p> <p>The data field holds every type of data possible. This would be a VARCHAR(MAX) in most databases. It's up to the upload process to convert dates and numbers to strings.</p> <p>Your data table will have a foreign key to the rest of the information that identifies who the data field belongs to.</p> <blockquote> <p>How do I make them upload data in a way that is incremental? For example they might be uploading an XML version of their data, my upload code should figure out what already exists.</p> </blockquote> <p>The short answer is that you can't.</p> <p>Your upload process has to identify duplicate data and not store it on the database.</p> <blockquote> <p>My final and most important question. Are there better ways of going about this instead of having an upload infrastructure? </p> </blockquote> <p>This is a hard question to answer without knowing more about the type of data you're receiving, but there is software that allows you to load databases without a lot of programming, by defining the input data structure and mapping that structure to your database tables.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload