Hi,
I was wondering if it is possible to force the db to hold the objects in the order they were inserted, so that when I query for them they are returned at the same order.
My application has around 50,000 Items . I add them to the db in chunks of thousands, where each Item has an increasing id.
After the first chink, if I query for all Items (IList<Item> = db.Query<Item>()) I get them at the same order they were inserted, but after the second third or fourth insertion, the order is broken at some places.
I tried sorting the Items but the performance took a turn for the worse (in magnitudes, since all Items had to be activated).
I want to show the Items in a virtual DataGridView, activating all Items takes too much time and is unnecessary.
Any ideas ?
Thanks.