G
Guest
hi all.
in my dev team we have an argument about retrieving Records from DB to
DataSet.
the big question is: should i retrieve all the records from my table (max
4000 records) to my DataSet, and then, inside the client i'll filter a
DataView, or should i filter the records in the SqlComand, and then, inside
the client, when it's filter time ,i'll go to the DB again with another
filter.
some developers say that if i hold a DataSet, filled with a lot of records
it will slow down the application and effect my pc's virtual memory, and
others say that this is the "correct" way to do, inorder to save round trips
to the DataBase.
so - what's the correct way to do it?
** i know it's diffrent between application's, but i ask in general.
thanks.
in my dev team we have an argument about retrieving Records from DB to
DataSet.
the big question is: should i retrieve all the records from my table (max
4000 records) to my DataSet, and then, inside the client i'll filter a
DataView, or should i filter the records in the SqlComand, and then, inside
the client, when it's filter time ,i'll go to the DB again with another
filter.
some developers say that if i hold a DataSet, filled with a lot of records
it will slow down the application and effect my pc's virtual memory, and
others say that this is the "correct" way to do, inorder to save round trips
to the DataBase.
so - what's the correct way to do it?
** i know it's diffrent between application's, but i ask in general.
thanks.