<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:42:22 JST 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>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-2039] Add some indexes for common cobra/mcs/ag/target joins</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-2039</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;One common set of queries is the family of &lt;tt&gt;select xxx from cobra_match where mcs_frame_id == yyy&lt;/tt&gt; . I think we should add an index on &lt;tt&gt;mcs_frame_id&lt;/tt&gt;. FWIW  &lt;tt&gt;cobra_match&lt;/tt&gt; has 36M rows and takes 4G of space. Only 2.8s now, but will clearly grow. &lt;/p&gt;

&lt;p&gt;And I&apos;ll bet that a bit of thought will find a few more of these.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23747">INSTRM-2039</key>
            <summary>Add some indexes for common cobra/mcs/ag/target joins</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="kiyoto.yabe">Kiyoto Yabe</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>near-term</label>
                    </labels>
                <created>Mon, 24 Jul 2023 07:52:24 +0000</created>
                <updated>Fri, 6 Oct 2023 17:35:55 +0000</updated>
                            <resolved>Fri, 6 Oct 2023 17:35:55 +0000</resolved>
                                                                    <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="34252" author="cloomis" created="Fri, 4 Aug 2023 13:37:00 +0000"  >&lt;p&gt;Now that the run is done, can this be added? Should be obvious pretty fast whether it helps.&lt;/p&gt;</comment>
                            <comment id="34764" author="kiyoto.yabe" created="Fri, 8 Sep 2023 18:45:59 +0000"  >&lt;p&gt;I think I&apos;m done.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
                 Table &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.cobra_match&quot;&lt;/span&gt;
     Column      |  Type   | Collation | Nullable | Default
-----------------+---------+-----------+----------+---------
 pfs_visit_id    | integer |           | not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; |
 iteration       | integer |           | not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; |
 cobra_id        | integer |           | not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; |
 mcs_frame_id    | integer |           |          |
 spot_id         | integer |           |          |
 pfi_center_x_mm | real    |           |          |
 pfi_center_y_mm | real    |           |          |
 flags           | integer |           |          |
Indexes:
    &lt;span class=&quot;code-quote&quot;&gt;&quot;cobra_match_pkey&quot;&lt;/span&gt; PRIMARY KEY, btree (pfs_visit_id, iteration, cobra_id)
    &lt;span class=&quot;code-quote&quot;&gt;&quot;cobra_match_mcs_frame_id_idx&quot;&lt;/span&gt; btree (mcs_frame_id)
    &lt;span class=&quot;code-quote&quot;&gt;&quot;cobra_match_pfs_visit_id_iteration_cobra_id_key&quot;&lt;/span&gt; UNIQUE CONSTRAINT, btree (pfs_visit_id, iteration, cobra_id)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="35161" author="yuki.moritani" created="Thu, 21 Sep 2023 07:25:47 +0000"  >&lt;p&gt;(For recording) Chi-Hung will test how much the query process will be faster before modifying the software.&lt;/p&gt;</comment>
                            <comment id="35165" author="cloomis" created="Thu, 21 Sep 2023 15:22:46 +0000"  >&lt;p&gt;The queries are now fast: a few 10s of ms. And the EXPLAIN shows a simple index search. Shouldn&apos;t require any software changes.&lt;/p&gt;</comment>
                            <comment id="35405" author="kiyoto.yabe" created="Fri, 6 Oct 2023 17:35:38 +0000"  >&lt;p&gt;Now queries are actually fast, so we close this ticket.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzsz76:i</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="167">Eng13Oct</customfieldvalue>

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