Discussion between pKs and jlordo

Imported from a comment discussion on http://stackoverflow.com/questions/14580802/android-iphone-device-data-distinction-in-web-application
4339d ago – jlordo
473
2

export all events for this room

Starred posts

Jan 30, 2013 13:10
so yes, it would be definitely be faster
Jan 30, 2013 13:09
wait, yes
Jan 30, 2013 13:09
it will speed things up
Jan 30, 2013 13:09
because right now you have 2 db lookups
Jan 30, 2013 13:09
one that finds out the table name
Jan 30, 2013 13:09
and one doing the actual lookup
Jan 30, 2013 13:09
that would be one single lookup with my db design
Jan 30, 2013 12:28
I'm sure you'll find a way to keep the files in memory for faster access
Jan 30, 2013 12:27
also, update command is complicated with 1000 lines content
Jan 30, 2013 12:27
because you also have to escape things that sql would interpret
Jan 30, 2013 12:27
just save the filename in the db
Jan 30, 2013 12:26
also, db can handle it's internal data layout for better efficiency if it's not bloated by dynamic length content
Jan 30, 2013 12:26
but that won't be noticeable, either
Jan 30, 2013 12:25
wouldn't it be easier to just edit text in a text editor??? :D
Jan 30, 2013 12:19
if the file is in memory already there will no noticable speed difference
Jan 30, 2013 12:17
i would store a filename
Jan 30, 2013 12:17
and have that file in memory
Jan 30, 2013 12:11
much better design approach
Jan 30, 2013 11:58
now i get it
Jan 30, 2013 11:42
and the master table uses a foreign key to the id of the courses table