Reputation: 3805
I've got an app that adds file's content row by row into data base. If file is not so big (smaller, than 100 kB) it will work well, but I can not say the same about big files. I found out that INSERT
query takes about 1 msc, so 50k INSERT
takes 50 sec. I find it very slow. This is my plan:
INSERT
in another threadSo, every user will run new thread, if file is big. I mean that I can not use one instance of this thread, every user will run new. Is it a good idea or not? How would you do?
Upvotes: 2
Views: 62
Reputation: 7988
Two points:
Upvotes: 3