It takes Pentium 4 3Ghz at least 8 hours to load data from a table using 1,000,000 rows in C # using firebird db
Everyone assumed that you were using an SQL query to select records from the database. Something like
select * from your_big_table /
Because it really takes a few seconds. Well, a little more to display it on the screen, but making the actual selection should be lightning fast.
But this link to C # makes me think that you are doing something else. Perhaps you really have an RBAR loop that creates a million objects. I see how this can take a little longer. But even so, eight hours? Where is the time going?
change
My guess was right, and you are creating 1,000,000 objects in a loop. The right advice would be to find another way to do what you do when you have all your objects in memory. Without knowing more about the details, it is difficult to give specific details. But it seems unlikely that this is a user interface - which user is going to view a million objects?
Thus, a general observation should be sufficient: use mass operations to realize mass activity. SQL databases are excellent at handling sets. Use the power of SQL to process millions of rows in a single set, not as separate rows.
If you do not find this answer useful, you need to provide us with more detailed information about the desire that you are trying to achieve.
APC
source share