Why does this statement take so much longer on a faster machine?
I am using VS2022 and Basic. I am finding that when the compiled EXE is run on an old APP Server with old Visual C++ Redistributables that this statement runs acceptably fast, but if I run the same EXE on a new APP Server with current Visual C++ Redistributables, this statement runs much more slowly and I wonder if anyone has any ideas.
While reader.Read
cboOrderNo.Items.Add(reader("orderno"))
cboHiddenPId.Items.Add(reader("p_id"))
End While
The statement in question is the one where the OrderNo Combo box is being populated. If it is commented out, the module runs as quickly as expected, but with the PId Combo box being commented out it is much slower. The reader("orderno") field is from an SQL Database, varchar(6) and each entry is 6 characters long.
The old APP Server has 16GB, the new APP Server has 128GB.