I'm writing a relatively small single user winforms lottery application. Most of the time it will just fetch开发者_如何学JAVA data (tickets) from a webservice and then, on saturdays, it will realize the lottery draw. As the balls are drawn, a query will run to display how many tickets are in for a win. After four balls are drawn the app will display the winning tickets.
By the time of the draw, there will be from one to eight million rows (tickets) in the database, so my question is if SQL CE 4.0 is able to handle this task.
Remember there is a 4 GB limit per database file. But the lookup should work fine, you should probably look into bypassing the query processor by use Seek - http://msdn.microsoft.com/en-us/library/system.data.sqlserverce.sqlcedatareader.seek(v=VS.90).aspx - but it would be easier to advice you, if you could share your table schema
精彩评论