Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how to retrieve 100000 record from sqlite (Mobile Applications) ????!!!!!!! Expand / Collapse
Author
Message
Posted Saturday, March 13, 2010 9:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, June 23, 2012 2:16 PM
Points: 5, Visits: 13
please help me with this......

i am trying to read more than 100000 record from my SQLite database very fast.

At the moment it takes 40-45 second to perform a select on the last record.

Does anybody knows the code for vb.net compact framework, to perform this search in less than 5 or 10 seconds?
al hajjaj
Post #882372
Posted Saturday, March 13, 2010 4:58 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:35 PM
Points: 12,962, Visits: 32,498
100K records is a lot to do anything to in compact edition; it's mostly up to the processor and indexing. are you just searching in compact edition? what exactly are you doing with 100K of records? do you have a table structure yet?

your title states "retrieve 100K records". that is going to be slow, no matter what. none of my portable devices could display 100K records without being dog slow; you'd be much better off paging record groups and displaying in batches, if that is what you are doing.

you are using SQLite instead of SQL Server Compact Edition database?


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #882429
Posted Monday, March 15, 2010 11:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, June 23, 2012 2:16 PM
Points: 5, Visits: 13
the problem is solved.
yes it is SQLite and yes i have table structure
thank you so much.
Post #883173
Posted Monday, March 15, 2010 11:31 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:35 PM
Points: 12,962, Visits: 32,498
glad you fixed it; what was the problem, and what was your solution? it might benefit some others if you can post some ideas and details.
Thanks!
HAJJAJ (3/15/2010)
the problem is solved.
yes it is SQLite and yes i have table structure
thank you so much.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #883180
Posted Wednesday, March 24, 2010 12:00 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, June 23, 2012 2:16 PM
Points: 5, Visits: 13
you know i was using "like" in my query so i change it to "=" it's faster than like.

i also add index for the table .
Post #888702
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse