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

Visual Basic

 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan24-Feb-14 18:42
Dan O'Riordan24-Feb-14 18:42 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 0:28
professionalEddy Vluggen25-Feb-14 0:28 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 1:04
Dan O'Riordan25-Feb-14 1:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 3:04
professionalEddy Vluggen25-Feb-14 3:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 3:29
Dan O'Riordan25-Feb-14 3:29 
QuestionHow do I use ErrorProvider with a bound UserControl? (WinForms) Pin
GroupIII20-Feb-14 17:46
GroupIII20-Feb-14 17:46 
AnswerRe: How do I use ErrorProvider with a bound UserControl? (WinForms) Pin
Eddy Vluggen20-Feb-14 22:30
professionalEddy Vluggen20-Feb-14 22:30 
Question100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 7:04
Arun Peswani19-Feb-14 7:04 
Hi,

I am using VB.Net for my program where I have designed a form.
On the left side, I have a list of 100,000+ Items which load in the CheckListBox control on the form load. On the right hand side, I have a ListView control which has multiple columns and shows values related to the Items selected in CheckListBox.
I have created a string variable called ITEMS like this:

Dim ITEMS as String = "'" & CheckListBox.Item(0) & "'"
For int i = 1 To CheckListBox.Count - 1
ITEMS = ITEMS & "'" & CheckListBox(i) & "'"
Next

This stores all the item names in my ITEMS string variable

Now, my Problem here is that when I use following query:

Select * from TableA where Item in(ITEMS)

This query runs for each of the selected items and takes a very long time (perhaps a couple of minutes) to display result in ListView control. I know, the reason here is that I have 100,000+ Items in my list which I am using in IN operator of SQL Query but I am not sure what alternate way I can use to reduce the output time for these many Items.

If there is any other work around to get quicker results, can anyone please help me?
arunpeswani@gmail.com

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 
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 

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.