<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:57:16 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-41268] snappy compression of mongoDB does not work.</title>
                <link>https://jira.mongodb.org/browse/SERVER-41268</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I used Ubuntu 16.04TLS, MongoDB 4.0.9&lt;/p&gt;

&lt;p&gt;When I create each collection:&lt;/p&gt;

&lt;p&gt;snappy+false&lt;br/&gt;
mongoshell&amp;gt;&amp;gt; db.createCollection( &quot;test&quot;,{storageEngine:{wiredTiger:&lt;/p&gt;
{configString:&apos;block_compressor=snappy, prefix_compression=false&apos;}
&lt;p&gt;}})&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;zlib+false&lt;br/&gt;
&amp;gt;mongoshell&amp;gt;&amp;gt; db.createCollection( &quot;test&quot;,{storageEngine:{wiredTiger:&lt;/p&gt;
{configString:&apos;block_compressor=zlib, prefix_compression=false&apos;}
&lt;p&gt;}})&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I insert similar 100KB data.&lt;/p&gt;

&lt;p&gt;total = 100KB * 100,000 = about 9GB&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; db.test.storageSize()&#160;&lt;/p&gt;

&lt;p&gt;snappy+false :&#160; &#160; 10653405184&#160; &#160; &#160; &#160;&#160;&lt;/p&gt;

&lt;p&gt;zlib+false :&#160; &#160; &#160; &#160; &#160; &#160;6690177024&#160; &#160;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&apos;zlib&apos; is compressed about 37% but &apos;snappy&apos; is same the &apos;none&apos;.&lt;/p&gt;

&lt;p&gt;It was not compressed.&lt;/p&gt;

&lt;p&gt;prefix_compress was not compressed either.&lt;/p&gt;

&lt;p&gt;Maybe the problem is this but I do not know why.&lt;/p&gt;

&lt;p&gt;snappy+false &amp;amp; snappy+true&lt;/p&gt;

&lt;p&gt;&quot;compression&quot; : {&lt;br/&gt;
 &quot;compressed pages read&quot; : 0,&lt;br/&gt;
 &quot;compressed pages written&quot; : 0,&lt;br/&gt;
 &lt;font color=&quot;#FF0000&quot;&gt;&quot;page written failed to compress&quot; : 100007,&lt;/font&gt;&lt;br/&gt;
 &quot;page written was too small to compress&quot; : 1025&lt;br/&gt;
 }&lt;/p&gt;</description>
                <environment></environment>
        <key id="774416">SERVER-41268</key>
            <summary>snappy compression of mongoDB does not work.</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13202">Works as Designed</resolution>
                                        <assignee username="kevin.adistambha@mongodb.com">Kevin Adistambha</assignee>
                                    <reporter username="null-fiy">J</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 May 2019 12:55:34 +0000</created>
                <updated>Fri, 27 Oct 2023 13:53:13 +0000</updated>
                            <resolved>Thu, 23 May 2019 02:08:29 +0000</resolved>
                                    <version>4.0.9</version>
                                                    <component>Storage</component>
                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="2257338" author="kevin.adistambha" created="Thu, 23 May 2019 02:08:06 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=null-fiy&quot; class=&quot;user-hover&quot; rel=&quot;null-fiy&quot;&gt;null-fiy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I believe you are posting the same question on a &lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/m3wPRV4wnU8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailing list thread&lt;/a&gt;. I have replied to the question on mongodb-user, where I mentioned that the inability of snappy to compress your test data could be because you are using a random string. Zlib can still somewhat compress it because it focuses on compression performance and will put in a lot more effort. In contrast, snappy was designed with speed in mind.&lt;/p&gt;

&lt;p&gt;However, if you are not using a random string as test data, we would be interested in seeing some example of your incompressible documents.&lt;/p&gt;

&lt;p&gt;Please note that the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the mongodb tag&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
 Kevin&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 23 May 2019 00:25:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 38 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 38 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>null-fiy</customfieldvalue>
            <customfieldvalue>kevin.adistambha@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hv0l5j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hupv0n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hv07ev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>