11-21-2018 10:55 AM - edited 11-21-2018 10:56 AM
I have a very large cluster. I'm going to have to design a database to to match the cluster.
I know in TestStand it is possible to automatically generate a MySQL database from a test report. Is there any type of similar functionality in LabVIEW? Basically, is there an easy way to do it that won't take up a lot of time?
11-21-2018 11:02 AM
The Insert Data VI in the Database Connectivity Toolkit has an option to create a table if one doesn't exist.
11-21-2018 12:45 PM
From a DB design perspective, should you see if the data should be saved in a single table? You may get much better performance from the DB if the data was separated into multiple tables. Without knowing the nature of the data it is difficult to tell but generally tables with lots of columns are not very efficient.
11-21-2018 01:00 PM - edited 11-21-2018 01:01 PM
You should consider the option of converting the cluster to JSON (using a tool like JSONtext) and storing that. MySQL has a JSON data type that supports querying inside the JSON as if it were a table. Depends on your use case, but it is very easy.