Click here to Skip to main content
15,888,293 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 7:04
Arun Peswani19-Feb-14 7:04 
AnswerRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen19-Feb-14 8:11
professionalEddy Vluggen19-Feb-14 8:11 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 16:09
Arun Peswani19-Feb-14 16:09 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 0:29
professionalEddy Vluggen20-Feb-14 0:29 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 5:35
Arun Peswani20-Feb-14 5:35 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 8:45
professionalEddy Vluggen20-Feb-14 8:45 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 20:55
Arun Peswani20-Feb-14 20:55 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen21-Feb-14 6:43
professionalEddy Vluggen21-Feb-14 6:43 
Arun Peswani wrote:
1) All my columns are either 'int' or 'varchar', moreover unfortunately there are no indexes defined as well Frown | :( , perhaps I should try if it helps improving the speed.
That will indeed improve performance. The keys need one, and the To- and From-date might help too.

Arun Peswani wrote:
2) String builder looks better for sure and I am going to try it today.
I expect it to help, but optimizing the database will have a larger impact.

Having integers as the primary key is sweet Thumbs Up | :thumbsup:

Theoretically, one could save the selection as a datatable; you now have an ITEMS string containing "11, 17, 321, 205", right? If you'd insert those into a temporary table (Table0), then you could use another join to limit your selection by changing the Sql statement;
SQL
select Table1.Column2, Table2.Column2, Table3.Column2 from Table2
full outer join Table1 on Table1.Column1 = Table2.Column1
full outer join Table3 on Table3.Column1 = Table2.Column2
JOIN Table0 on Table1.Column1 = Table0.Column0
where Table2.Dates between 'FromDate' and 'ToDate'
Order By Table1.Column2
The products table, does it hold a column called 'category' or something similar?

Are you familiar with the stopwatch class? If yes, try timing the code that does the loading, the part doing the actual query, and the part that shows it on screen. We can look into optimizing that last part once these two are done Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani22-Feb-14 6:57
Arun Peswani22-Feb-14 6:57 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen24-Feb-14 7:35
professionalEddy Vluggen24-Feb-14 7:35 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
MyOwnBoss7-Mar-14 13:05
MyOwnBoss7-Mar-14 13:05 
AnswerRe: 100,000 Items in Check ListBox result in slow performance PinPopular
Richard MacCutchan19-Feb-14 22:09
mveRichard MacCutchan19-Feb-14 22:09 
AnswerRe: 100,000 Items in Check ListBox result in slow performance Pin
Dave Kreskowiak24-Feb-14 5:10
mveDave Kreskowiak24-Feb-14 5:10 
QuestionComboBox not receiving DataSet values? Pin
rsmldmv18-Feb-14 12:17
rsmldmv18-Feb-14 12:17 
QuestionRe: ComboBox not receiving DataSet values? Pin
Eddy Vluggen19-Feb-14 8:01
professionalEddy Vluggen19-Feb-14 8:01 
QuestionAutomatically open Hyperlink in NeoOffice (VBA?) Pin
Member 1060384017-Feb-14 9:30
Member 1060384017-Feb-14 9:30 
SuggestionRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Richard MacCutchan17-Feb-14 21:32
mveRichard MacCutchan17-Feb-14 21:32 
GeneralRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Member 1060384017-Feb-14 22:42
Member 1060384017-Feb-14 22:42 
GeneralRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Richard MacCutchan18-Feb-14 2:47
mveRichard MacCutchan18-Feb-14 2:47 
Questionvb.net Pin
SURAJIT UPADHYAY15-Feb-14 0:16
SURAJIT UPADHYAY15-Feb-14 0:16 
AnswerRe: vb.net Pin
Richard MacCutchan15-Feb-14 1:42
mveRichard MacCutchan15-Feb-14 1:42 
AnswerRe: vb.net Pin
Simon_Whale17-Feb-14 22:05
Simon_Whale17-Feb-14 22:05 
QuestionLibrary not registered in excel 2013 vba Pin
Samoeurn13-Feb-14 21:41
Samoeurn13-Feb-14 21:41 
AnswerRe: Library not registered in excel 2013 vba Pin
Richard MacCutchan13-Feb-14 21:56
mveRichard MacCutchan13-Feb-14 21:56 
GeneralRe: Library not registered in excel 2013 vba Pin
Samoeurn13-Feb-14 22:27
Samoeurn13-Feb-14 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.