I have an application that stores approximately 24 fields of data about a machine. Am I better off having one large SQL statement that inserts all of this information, or should I use many small statements as the date is entered?
An example:
CPU/Memory/HDD is one group, another would be client contact/phone/address.
Am I better off getting all information and then creating the information in the table or should I enter the first group as the data is entered, then enter the second group, etc?
The fields will all be present on the same page, and views have been created for each group.
If everything is on one page (you have all data available at one) do one
INSERT, otherwise you will be doing anINSERTand then a fewUPDATEs, which is always slower (because you are doing a few operation instead of one) and more complex for you to write. In your case the speed difference will be insignificant.