<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:34:17 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-1334] Add efficient DataFrame &lt;--&gt; opdb methods</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1334</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;With sqlalchemy 1.4, I have Opdb class methods to bulk transfer data in and out of opdb tables, directly to/from pandas DataFrames. We have had other functions to do that, but the older sqlalchemy made that very confusing and odd.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16983">INSTRM-1334</key>
            <summary>Add efficient DataFrame &lt;--&gt; opdb methods</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="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="cloomis">cloomis</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Aug 2021 04:09:40 +0000</created>
                <updated>Wed, 18 Aug 2021 08:18:47 +0000</updated>
                                                                            <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="21831" author="kiyoto.yabe" created="Wed, 18 Aug 2021 08:18:47 +0000"  >&lt;p&gt;I&apos;m taking a look at your implementation (as of Jul 22) but `bulkInsert` does not work for me.&lt;/p&gt;

&lt;p&gt;I needed to change slightly like:&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;
buf = io.StringIO() 
data.to_csv(buf, header=False, index=False) 
buf.seek(0) 
sqlCmd = f&lt;span class=&quot;code-quote&quot;&gt;&quot;COPY {tablename} FROM STDIN WITH (FORMAT CSV)&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But still cannot insert anything. There seems to be a problem in&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;
with self.engine.connect() as conn: 
    with conn.connection.cursor() as cursor: 
        cursor.copy_expert(sqlCmd, buf)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The following works simply but you like to use context manager here...&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;
conn = self.engine.raw_connection() 
cursor = conn.cursor() 
cursor.copy_expert(sqlCmd, buf) 
conn.commit()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Maybe I&apos;m doing something wrong.&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|zzs8u8:</customfieldvalue>

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