Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-648

How to use compression on while inserting record?

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.0.0
    • Component/s: mongofiles
    • Labels:
      None
    • Environment:
      Linux, php,

      I am developing application with PHP and Mongodb.
      Recently I upgraded to v3.0 to use compression feature.
      For configuration I run below command.
      mongod --storageEngine wiredTiger --dbpath /var/lib/mongo --wiredTigerJournalCompressor zlib --wiredTigerCollectionBlockCompressor zlib

      Now I am inserting record record in document but its taking same space in disk as it was taking without using compression tool.

      if I run "gzip datafile" command, it compresses file.
      But I was expecting like this zip process should be automated, while inserting record.

      Is this possible to achieve this?

            Assignee:
            Unassigned Unassigned
            Reporter:
            praveend06 Praveen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: