Open Samircj opened 10 years ago
I think this is because sqlite-net goes through all the records, then picks the first 20 (so you have all your data parsed to objects - you can verify that by checking out the source, and build your own copy rather than using the nuget package, then step through the code where the query is being sent to the database). Unfortunately, not everything you can do with linq is turned into the most efficient SQL. So you have to work around this by writing queries differently, or go ahead and improve the library itself.
this query takes me 11~13 sec in table with 30.000 registers with another component i had it instantly