Re: Fast Load?
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 08/13/04
- Next message: John: "Re: Fast Load?"
- Previous message: Mike: "Installing SQL Server CE on device permanently"
- In reply to: John: "Fast Load?"
- Next in thread: John: "Re: Fast Load?"
- Reply: John: "Re: Fast Load?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 13 Aug 2004 09:00:02 +0100
John <jo@jonkar.ca> wrote:
> I posted this in the pocketpc.developer newsgroup but maybe this is the
> place to ask....
>
> I have created a VB.NET CE Pocket Pc 2002 application, and I need to load a
> combobox really fast from the SQL CE database...
>
> I have tried the DataAdapter.Fill(Dataset), and also the DataReader While
> Wend.
> They seem to take about the same amount of time to load (a few seconds)
>
> I have Three Tables, Books, Codes, and Book_Codes
>
> Codes is loaded into a Combobox and when the user selects a Code;
> Books Combobox is Loaded: Select * From Books, Book_Codes Where
> Book_Codes.BookID = Books.BookID
>
>
> Any one have a faster way of loading the combobox...
Well for a start, I wouldn't use SELECT *. Only load the columns you
absolutely need - and I'd recommend specifying which columns those are.
That way if extra columns are added later and you don't need them, you
won't get a performance penalty.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: John: "Re: Fast Load?"
- Previous message: Mike: "Installing SQL Server CE on device permanently"
- In reply to: John: "Fast Load?"
- Next in thread: John: "Re: Fast Load?"
- Reply: John: "Re: Fast Load?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|