<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:19 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>[JAVA-1322] Log command line friendly queries and milliseconds</title>
                <link>https://jira.mongodb.org/browse/JAVA-1322</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We use com.mongodo.TRACE occasionally to see the queries.&lt;/p&gt;

&lt;p&gt;Would like couple of improvements:&lt;br/&gt;
a.) Log the output that can be copied directly to mongo command line&lt;br/&gt;
b.) Log how long it took to run the query in milliseconds&lt;/p&gt;</description>
                <environment></environment>
        <key id="149910">JAVA-1322</key>
            <summary>Log command line friendly queries and milliseconds</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="spasam">Seshu Pasam</reporter>
                        <labels>
                            <label>logging</label>
                    </labels>
                <created>Wed, 30 Jul 2014 02:56:01 +0000</created>
                <updated>Fri, 8 Dec 2017 21:41:45 +0000</updated>
                            <resolved>Fri, 8 Dec 2017 21:41:45 +0000</resolved>
                                    <version>2.12.2</version>
                                                    <component>Monitoring</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1747443" author="jeff.yemin" created="Fri, 8 Dec 2017 21:41:45 +0000"  >&lt;p&gt;I recently opened two very similar issues, so closing this one as a duplicate as I&apos;d like to track this as two separate feature requests.&lt;/p&gt;</comment>
                            <comment id="676356" author="spasam" created="Wed, 30 Jul 2014 14:11:14 +0000"  >&lt;p&gt;Ross, thanks for  your response. Yes, I am aware of and use mongo profiling. This is more for figuring out client side network latency issues etc, which cannot be see in profiling data. Since the driver is already logging the queries, it should be trivial to add this functionality.&lt;/p&gt;</comment>
                            <comment id="676108" author="ross@10gen.com" created="Wed, 30 Jul 2014 08:42:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spasam&quot; class=&quot;user-hover&quot; rel=&quot;spasam&quot;&gt;spasam&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Did you know that mongodb has a profiler that will allow you to record this information?  &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/manage-the-database-profiler/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/tutorial/manage-the-database-profiler/&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;The profiler will record your queries in the manner required and the time taken for them to run.  The profiler is configurable, you can set a time threshold for what queries get recorded - eg only record slow queries taking longer than 100ms.  Profiling will have a minor impact on performance but it can be a great tool for helping tune your queries and indexes.&lt;/p&gt;

&lt;p&gt;The Java driver allows you to add a comment on a &lt;tt&gt;DBCursor&lt;/tt&gt; that can be used to help trace queries in the profiler back to Java code should you need to.&lt;/p&gt;

&lt;p&gt;Does that meet your needs?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="469984">JAVA-2697</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="469994">JAVA-2698</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg9z3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8515</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>