Click here to Skip to main content
15,920,896 members
Home / Discussions / Database
   

Database

 
AnswerRe: converting column values to column. Pin
Kasson10-Dec-10 20:29
Kasson10-Dec-10 20:29 
AnswerRe: converting column values to column. Pin
thatraja10-Dec-10 20:32
professionalthatraja10-Dec-10 20:32 
AnswerRe: converting column values to column. Pin
Goutam Patra10-Dec-10 21:08
professionalGoutam Patra10-Dec-10 21:08 
AnswerRe: converting column values to column. Pin
Mycroft Holmes11-Dec-10 20:28
professionalMycroft Holmes11-Dec-10 20:28 
AnswerRe: converting column values to column. Pin
RaviRanjanKr20-Dec-10 18:22
professionalRaviRanjanKr20-Dec-10 18:22 
QuestionHow to convert varchar values to int while passing as an in parameter? Pin
meeram39510-Dec-10 0:25
meeram39510-Dec-10 0:25 
AnswerRe: How to convert varchar values to int while passing as an in parameter? Pin
meeram39510-Dec-10 0:40
meeram39510-Dec-10 0:40 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
Hiren solanki10-Dec-10 1:33
Hiren solanki10-Dec-10 1:33 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
meeram39512-Dec-10 19:14
meeram39512-Dec-10 19:14 
AnswerRe: How to convert varchar values to int while passing as an in parameter? Pin
Eddy Vluggen10-Dec-10 0:59
professionalEddy Vluggen10-Dec-10 0:59 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
PIEBALDconsult10-Dec-10 2:43
mvePIEBALDconsult10-Dec-10 2:43 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
Eddy Vluggen10-Dec-10 4:55
professionalEddy Vluggen10-Dec-10 4:55 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
meeram39512-Dec-10 19:14
meeram39512-Dec-10 19:14 
GeneralRe: How to convert varchar values to int while passing as an in parameter? Pin
Jörgen Andersson10-Dec-10 4:10
professionalJörgen Andersson10-Dec-10 4:10 
QuestionJoin in MYSQL Pin
bhavnvyas9-Dec-10 22:11
bhavnvyas9-Dec-10 22:11 
AnswerRe: Join in MYSQL Pin
Luc Pattyn9-Dec-10 22:51
sitebuilderLuc Pattyn9-Dec-10 22:51 
GeneralRe: Join in MYSQL Pin
Jörgen Andersson10-Dec-10 0:57
professionalJörgen Andersson10-Dec-10 0:57 
GeneralRe: Join in MYSQL Pin
Luc Pattyn10-Dec-10 1:07
sitebuilderLuc Pattyn10-Dec-10 1:07 
GeneralRe: Join in MYSQL Pin
Kasson10-Dec-10 20:30
Kasson10-Dec-10 20:30 
Questionlarge SQL table update performance Pin
KLPounds9-Dec-10 6:01
KLPounds9-Dec-10 6:01 
Overview... Client has an inventory DB in SQL with over 2 million records. The inventory db is constantly updated by .NET 3.5 winforms app that queries another 3rd party db via web services. the inventory is essently in constant update. Client is looking for faster performance as it's taking days to cycle thru the whole table and inventoried items will continue to grow.

I have no control over the structure of the SQL table as its tied to other applications and I have no control over the 3rd party web service that I'm getting the updated info from.. I only have control over the winform app that communicates with the two. It simply queries the webservice for inventory data, do some work with the data, and update the results into SQL db. But it has to run down thru the entire inventory table.

I've inherited this app and so most of the work I've done was specific to functional tweaks and code cleanup but now the client is looking for more speed. Throwing 5 figures worth of hardware horsepower and my "tweaks" isn't giving him the results he was expecting. While his old hardware was inadequate for what he was doing, I explained throwing muscle doesn't really fix slow software.

Sending Update queries 1 record at a time whether via the .NET app or even calling a Stored Procedure just seems inefficient when your dealing with a dataset of this size.. And when it takes days to update, it runs 24/7 which causes other issues.

My thought is to do work with the data via a datatable and then do one big update to SQL. I'm not talking loading all records.. currently the app loops thru chunks of 500-1000 records at a time. There has to be way better than a 1 by 1 record update encapsulated in a big For-Loop.

Advice, Comments, Opinions?

I've done similar work with datatables but it was for manipulating CSV files and on much smaller scale (< 1000 rows). But it seems logical that the priciples would be the same and faster than calling SQL directly to update 1 record at a time.

Thanks In Advance!
AnswerRe: large SQL table update performance Pin
David Mujica9-Dec-10 6:44
David Mujica9-Dec-10 6:44 
GeneralRe: large SQL table update performance Pin
KLPounds9-Dec-10 7:32
KLPounds9-Dec-10 7:32 
GeneralRe: large SQL table update performance Pin
David Mujica9-Dec-10 9:25
David Mujica9-Dec-10 9:25 
AnswerRe: large SQL table update performance Pin
jschell9-Dec-10 10:25
jschell9-Dec-10 10:25 
AnswerRe: large SQL table update performance Pin
Mycroft Holmes9-Dec-10 11:34
professionalMycroft Holmes9-Dec-10 11:34 

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.