The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

Avatar-Roku's avatar
Avatar-Roku
New Contributor III
9 months ago
Solved

Reducing Table Size in OS – Need Advice

We're trying to reduce the size of a large table in OS (about 650GB). Our initial idea was to copy the rows to a new table and then rename it, but the insert process takes too long due to the size and ends up timing out. Deleting records from the table itself seems risky and take's similar duration. 

Has anyone dealt with something similar? Would appreciate any tips or suggestions for a faster and more efficient approach. Thank you! 

  • JackLacava's avatar
    JackLacava
    8 months ago

    Then you don't really have any restriction in what you do (beyond keeping it around for auditing purposes, particularly if it's related to actual numbers). So you can just have a look around for strategies: https://stackoverflow.com/questions/5296106/how-to-copy-a-huge-table-data-into-another-table-in-sql-server 

3 Replies

  • JackLacava's avatar
    JackLacava
    Icon for OneStream Employee rankOneStream Employee

    Depending on which table we're talking about, there will be very different solutions.

    • Avatar-Roku's avatar
      Avatar-Roku
      New Contributor III

      It's an audit table located within Application - Database

       

      • JackLacava's avatar
        JackLacava
        Icon for OneStream Employee rankOneStream Employee

        Then you don't really have any restriction in what you do (beyond keeping it around for auditing purposes, particularly if it's related to actual numbers). So you can just have a look around for strategies: https://stackoverflow.com/questions/5296106/how-to-copy-a-huge-table-data-into-another-table-in-sql-server