Enormous Table file starting with One waiter then onto the next waiter

  • Hello there All,

    I have an enormous table of DataSpace 200 GB information and 450 GB of Index Space, Compression type is ColumnStore.

    Presently, I am utilizing a power shell script with SqlbulkCopy Object to duplicate the information with a bunch size of 10000.

    As the objective table size develops the duplicate is turning out to be increasingly slow current content is requiring very nearly 3 hours to duplicate approx. 6000000 lines.

    Would you be able to kindly recommend better choices if any?

    Much thanks to you.

  • Try batching based on 102,400 rows. The reason I say that is because less than 100,000 rows in a batch and columnstore indexes use the delta store until you get to 102,400. You can read more about it here.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • How many of what kind of indexes do you have on the target table?  Also, what is the total number of rows in the source table?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • This was removed by the editor as SPAM

  • Heh.... must still be waiting for the first transfer to complete, eh? 😀

     

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply