none
Which file compressing mechanism is faster and efficient in C#?? RRS feed

  • Question

  • Hello ,

    I want to archive my databse in the compressed format.For that which mechanism is best.I have tried the 

    GZipStream  class but it seems slow.Can anyone suggest a better solution.

    Latheesh K Contact No:+91-9747369936

    Wednesday, July 4, 2018 5:55 AM

Answers

  • Then create an AppSetting to configure the compression level. So that the client can decide between optimal, fastest and none.

    • Marked as answer by La07K Friday, July 6, 2018 7:46 AM
    Wednesday, July 4, 2018 11:10 AM

All replies

  • What kind of database? SQL Server can create compressed backups.

    But compression is slow. Especially when you strive for higher compression rates. What compression level did you use?

    Take a look at System.IO.Compression. I normally use ZipFile/ZipArchive for normal operations. For anything special I use Process to control installed zippers like 7-zip or RAR.

    Wednesday, July 4, 2018 8:38 AM
  • I am using SQLLite db,

    Compression level i am using optimal.

    I am not supposed to use third party compression tool.I have to create a compression mechanism which microsoft gives.

    My databse file will come around 2-3gb


    Latheesh K Contact No:+91-9747369936


    Wednesday, July 4, 2018 9:47 AM
  • Then create an AppSetting to configure the compression level. So that the client can decide between optimal, fastest and none.

    • Marked as answer by La07K Friday, July 6, 2018 7:46 AM
    Wednesday, July 4, 2018 11:10 AM
  • Ok Thanks..this i will try

    Latheesh K Contact No:+91-9747369936


    • Edited by La07K Wednesday, July 4, 2018 12:39 PM
    Wednesday, July 4, 2018 12:39 PM
  • Hi Latheesh K,

    Is there any update? Do you resolve the issue?

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, July 5, 2018 1:14 AM
    Moderator
  • Yes...its helpful

    Latheesh K Contact No:+91-9747369936

    Friday, July 6, 2018 7:46 AM