goaway1234
Programmer
Howdy all. I am working on a project that is nearing release, and while testing it on large data sets I have run into brick wall. The program does call management, contact management, and scheduling for small businesses. It has a database back-end that can use access, msde, or sql-server.
I packaged most of the business logic into collections and objects. When the application needs a list of contacts, it creates an object for each record and puts it into a collection. My problem is that I tested it on a database that has 29000+ customer records, and creating an object for each record takes about 15 minutes, and destroying each of those objects takes about as long.
I've done everything that I can think of to speed this up, and the best solution I've come up with is to only create this collection once and keep it in memory until the program closes. But this still isn't good enough.
Does anybody have any suggestions on how I can speed up creating and destroying such a large number of objects?
I packaged most of the business logic into collections and objects. When the application needs a list of contacts, it creates an object for each record and puts it into a collection. My problem is that I tested it on a database that has 29000+ customer records, and creating an object for each record takes about 15 minutes, and destroying each of those objects takes about as long.
I've done everything that I can think of to speed this up, and the best solution I've come up with is to only create this collection once and keep it in memory until the program closes. But this still isn't good enough.
Does anybody have any suggestions on how I can speed up creating and destroying such a large number of objects?