Best way to fetch data from a single database table with multiple threads?
Posted
by
Ravi Bhatt
on Stack Overflow
See other posts from Stack Overflow
or by Ravi Bhatt
Published on 2010-12-23T11:32:07Z
Indexed on
2010/12/23
11:54 UTC
Read the original article
Hit count: 384
Hi,
we have a system where we collect data every second on user activity on multiple web sites. we dump that data into a database X (say MS SQL Server). we now need to fetch data from this single table from daatbase X and insert into database Y (say mySql).
we want to fetch time based data from database X through multiple threads so that we fetch as fast as we can. Once fetched and stored in database Y, we will delete data from database X.
Are there any best practices on this sort of design? any specific things to take care on table design like sharing or something? Are there any other things that we need to take care to make sure we fetch it as fast as we can from threads running on multiple machines?
Thanks in advance! Ravi
© Stack Overflow or respective owner