Here's the scenario.
I have an application. Underlying database tables have millions of rows. Say table 'Books' has millions of rows.
In the Application design, I have a custom business object Book and custom-collection BookCollection, to represent collection of books. We have written a tiny-ORM which is responsible for mapping between business objects and datasets. The object itself holds the mapping details by having its properties decorated through custom-attributes.
Now, there's a scenario where BookCollection object needs to hold thousands of records.
What will be an optimal strategy to deal here ? Can I also load Book objects into BookCollection asnychrounsly or in parallel? What is the recommended practice in this scenario ?