sql - database design, question about implementation -
question regarding sql database design project working on.
i receiving data every few seconds , going need store data database. using mysql dbms. data needs stored in database userid attached each piece of data. handling 1 user per application. so, each instance of application handling 1 users data. remote database storing users data though. so, why need userid's know data whose.
my idea wait until receive 50 data packets , create delimited string of 50 data packets. (maybe separated commas) push string database along userid. , store data that. question is, way it? there better way? bad practice? tips please! =)
i receiving lot of data. 1 data packet every second, faster. let me know think.
the dbms running on remote machine. application running on android phone.
thanks in advance!
i not suggest concatenating bunch of values send delimited string database. creates additional work on database parse string.
any reasonable framework interacting database let create , send batches of sql statements different values bind variables database. keeps nice, friendly syntax of stored procedure or insert statement, keeps database normalized, , accomplishes performance goal of minimizing number of round-trips.
Comments
Post a Comment