mjda
Well-known member
I'm trying to develop a new addon for my site that will allow members to submit certain data that will contain long lists of information. Now, I've already got the addon working, with 1 exception. When they submit a list, I need each line on their list to be entered into the database.
Right now I'm using a foreach with the datawriter process taking place for each line. Is this ok, or will something break if the list contains say 1000 lines of data? That would be 1,000 mysql entries at once, which seems like way too much to me.
So, is there a better/more efficient way for me to add all of those rows, maybe with a single query, using the DataWriter?
Right now I'm using a foreach with the datawriter process taking place for each line. Is this ok, or will something break if the list contains say 1000 lines of data? That would be 1,000 mysql entries at once, which seems like way too much to me.
So, is there a better/more efficient way for me to add all of those rows, maybe with a single query, using the DataWriter?