c# - Updating a large data set via SQL command -
c# - Updating a large data set via SQL command -
i'm working import file has 460,000 rows of info within it. each row consists of id , quantity (eg. "1,120"). info read file, should used update each individual row within database (eg. update item set quantity = qty id = 1).
the problem i'm having, though, beingness able run query efficiently. if run individual query each line, it's not going work (as i've found out hard way).
i'm not in way sql user , i'm learning, i've seen, web doesn't seem have useful results on this.
i wondering if had experience updating such big dataset, , if so, willing share methods used accomplish this?
460k rows isn't lot, should okay there.
i'd recommend importing entire dataset temporary table, or table variable. solution working, start creating actual physical table, can either drop or truncate while getting working.
create table, import info it. then, table update based on bring together import table.
discard import table when appropriate. 1 time working how want to, can entire thing using stored procedure, , utilize temporary table handle imported info while working it.
c# mysql sql
Comments
Post a Comment