<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Infobright.org Forums</title>
    <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/" />
    <link rel="self" type="application/atom+xml" href="http://www.infobright.org/Forums/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2012</rights>
    <generator uri="http://expressionengine.com/" version="1.6.7">ExpressionEngine</generator>
    <id>tag:infobright.org,2012:01:19</id>


    <entry>
      <title>Simple query with join takes much longer than expected</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2706/" />      
      <id>tag:infobright.org,2012:Forums/viewthread/.2706</id>
      <published>2012-01-09T12:35:13Z</published>
      <updated></updated>
      <author><name>jk1234</name></author>
      <content type="html">
      <![CDATA[
        <p>The following query takes about eight minutes to execute;</p>

<p>select <br />
i.ADVERTISER_ID,<br />
i.CAMPAIGN_GROUP_ID,<br />
i.CAMPAIGN_ID,<br />
i.AUCTION_ID_64,<br />
i.TIMESTAMP AS ImpTime,<br />
v.DATETIME AS ConvTime <br />
from tblpvconvs v inner join digitize.tblimpressions i on v.AUCTION_ID_64 = i.AUCTION_ID_64;</p>

<p>tblimpressions has 1086962700 rows<br />
tblpvconvs has 8018 rows</p>

<p>Is there a trick that I am missing?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Which level of transaction isolation does ICE support&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2693/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2693</id>
      <published>2011-12-22T04:29:29Z</published>
      <updated></updated>
      <author><name>pxllele2011</name></author>
      <content type="html">
      <![CDATA[
        <p>hi,<br />
&nbsp;  please reply.<br />
&nbsp; I use the following commands :<br />
&nbsp; select @@global.tx_isolation, @@tx_isolation;show engines;<br />
&nbsp; <br />
&nbsp; and I get some information that the default transaction isolation level is REPEATABLE-READ and the brighthouse support  transactions.<br />
&nbsp; <br />
&nbsp; Now I want change the transaction isolation level ,and I use the &#8220;SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;&#8221; command ,but it seems not work.</p>

<p>&nbsp; So Can anyone tell me Which level of transaction isolation does ICE support?<br />
&nbsp; thanks a lot
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>is ice support snapshot backup&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2671/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2671</id>
      <published>2011-12-06T02:58:29Z</published>
      <updated></updated>
      <author><name>Knight</name></author>
      <content type="html">
      <![CDATA[
        <p>hi,<br />
&nbsp;  Can i use a snapshot to backup databases. <br />
&nbsp;  I find that some snapshot backup use mysqladmin, mysqlhotcopy, mysqldump mysqlbinlog, these are mysql client command. <br />
&nbsp;  I have seen then user guide that backup is just copy the entire data folder. Any other method?</p>

<p>&nbsp;  thanks
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>I/O operation exception</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2654/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2654</id>
      <published>2011-11-25T05:26:08Z</published>
      <updated></updated>
      <author><name>Knight</name></author>
      <content type="html">
      <![CDATA[
        <p>Error Messages is :<br />
Exception during sql named pipe use: I/O operation on /data/DBname/cfg_channel_program_dim.bht/TA00000000000000.ctb failed with error - Permission denied File name /data/DBname/cfg_channel_program_dim.bht/TA00000000000000.ctb.</p>

<p>how to fix this error?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Convert vertical data</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2629/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2629</id>
      <published>2011-11-09T16:44:45Z</published>
      <updated>2011-11-09T16:50:35Z</updated>
      <author><name>ernesto_vargas</name></author>
      <content type="html">
      <![CDATA[
        <p>I have a table that store a key=value reference of arbitrary data from my main records, and each record could have N number of key=values.</p>

<p>How can I convert that data to fit on ICE and use the full potential of its optimizer?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>how to fix the issue &#8220;communications link failure&#8221;</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2595/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2595</id>
      <published>2011-10-16T23:17:07Z</published>
      <updated>2011-10-17T01:27:15Z</updated>
      <author><name>Knight</name></author>
      <content type="html">
      <![CDATA[
        <p>hi, <br />
I use Kettle as etl tools to load data to Infobright. But I am getting this exception frequently when i use &#8220;infobright loader&#8221;, i hava searched google for this issue. but i still cannot fix it.</p>

<p><br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :<span style="color:green;"> Exception during sql named pipe use: Communications link failure due to underlying exception: </span><br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : ** BEGIN NESTED EXCEPTION ** <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : java.io.EOFException<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : STACKTRACE:<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : java.io.EOFException<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.sendFileToServer(MysqlIO.java:2883)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:1989)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1413)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1757)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.Connection.execSQL(Connection.java:3020)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.Connection.execSQL(Connection.java:2949)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.mysql.jdbc.Statement.execute(Statement.java:538)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) :&nbsp;  &nbsp; at com.infobright.io.InfobrightNamedPipeLoader$ExecutionThread.run(InfobrightNamedPipeLoader.java:291)<br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : <br />
2011/10/17 10:07:56 - Infobright Loader.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : ** END NESTED EXCEPTION **
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Infobright in memory</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2598/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2598</id>
      <published>2011-10-18T11:19:33Z</published>
      <updated>2011-10-18T11:21:40Z</updated>
      <author><name>C_George</name></author>
      <content type="html">
      <![CDATA[
        <p>I was wondering if anybody tried to run Infobright in memory.<br />
Taking under consideration that compression makes the database very small, why not just give it a try?<br />
Of course, it&#8217;s not for extremely big databases, but for some sub-set, sort of cache or most recent part…<br />
Anyway, when I get my hands on some more memory, I&#8217;ll try it myself.<br />
Please let me know if anybody has any thoughts or experience.</p>

<p>Does that make any sense from the design point of view?<br />
Thanks</p>

<p><br />
C_G
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Query performance: should I break the table based on a column value for better performance&#63;</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2561/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2561</id>
      <published>2011-09-21T13:54:34Z</published>
      <updated></updated>
      <author><name>Prasad</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,</p>

<p>I have a table (raw_201109) with a number of columns, with one of the columns being a bigint &#8220;serial_int&#8221;. Most of the queries do have the clause &#8220;WHERE serial_int = some_number&#8217;. The possible values of serial_int can be in the order of 10s to 100s.</p>

<p>The table currently has 76 million rows. The overall performance of the queries on this particular database is not very good and I am looking at ways to improve performance. The following two queries will probably give an idea:-</p>

<p><span style="color:blue;"></p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;count</span><span style="color: #007700">(*)&nbsp;</span><span style="color: #0000BB">from&nbsp;raw_201109</span><span style="color: #007700">;<br />+----------+<br />|&nbsp;</span><span style="color: #0000BB">count</span><span style="color: #007700">(*)&nbsp;|<br />+----------+<br />|&nbsp;</span><span style="color: #0000BB">76671448&nbsp;</span><span style="color: #007700">|<br />+----------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0.00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;count</span><span style="color: #007700">(*)&nbsp;</span><span style="color: #0000BB">from&nbsp;raw_201109&nbsp;&nbsp;where&nbsp;serial_int&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">102090523644</span><span style="color: #007700">;<br />+----------+<br />|&nbsp;</span><span style="color: #0000BB">count</span><span style="color: #007700">(*)&nbsp;|<br />+----------+<br />|&nbsp;</span><span style="color: #0000BB">27760361&nbsp;</span><span style="color: #007700">|<br />+----------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">4.68&nbsp;sec</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div><p>
</span><br />
My question is: since most of my queries use WHERE clause on serial_int, will my queries perform much better if I have multiple tables based on serial_int value, rather than a single table that has all the possible serial_int values? My understanding is that breaking up the tables doesn&#8217;t really help.</p>

<p>Thanks for your input!
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Home UDF works fine on MyISAM and crashes Brighthouse table</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2580/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2580</id>
      <published>2011-10-04T05:32:26Z</published>
      <updated></updated>
      <author><name>eriam</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello</p>

<p>I have a home made UDF with which I want to use to somehow replace the match .. against queries (so that would work without index but the performance seems acceptable on the test table: 20M records ~40secs for 2 criteria on a low end development machine) that doesn&#8217;t work with tables others then MyISAM.</p>

<p>So I have this UDF ( test_udf() ) that works fine on MyISAM table and after a few match (the limit seems to be 80 matches) it just crashes the server.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">from&nbsp;test</span><span style="color: #007700">.</span><span style="color: #0000BB">test_udf_search_ib&nbsp;limit&nbsp;81</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">ERROR&nbsp;2013&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">HY000</span><span style="color: #007700">):&nbsp;</span><span style="color: #0000BB">Lost&nbsp;connection&nbsp;to&nbsp;MySQL&nbsp;server&nbsp;during&nbsp;query&nbsp;</span>
</span>
</code></div>

<p>if the query involves a full table scan it also crashes</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">from&nbsp;test</span><span style="color: #007700">.</span><span style="color: #0000BB">test_udf_search_ib&nbsp;where&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">ERROR&nbsp;2006&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">HY000</span><span style="color: #007700">):&nbsp;</span><span style="color: #0000BB">MySQL&nbsp;server&nbsp;has&nbsp;gone&nbsp;away<br />No&nbsp;connection</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">Trying&nbsp;to&nbsp;reconnect</span><span style="color: #007700">...<br /></span><span style="color: #0000BB">Connection&nbsp;id</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1<br />Current&nbsp;database</span><span style="color: #007700">:&nbsp;***&nbsp;</span><span style="color: #0000BB">NONE&nbsp;</span><span style="color: #007700">***&nbsp;</span>
</span>
</code></div>

<p>while all this works perfectly with a MyISAM table :</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">from&nbsp;test</span><span style="color: #007700">.</span><span style="color: #0000BB">test_udf_search&nbsp;where&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />+--------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">|<br />+--------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">44</span><span style="color: #007700">,</span><span style="color: #0000BB">43&nbsp;sec</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div>

<p>And with the Brighthouse table it works fine for a small amount of lines:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">from&nbsp;test</span><span style="color: #007700">.</span><span style="color: #0000BB">test_udf_search_ib&nbsp;limit&nbsp;10</span><span style="color: #007700">;<br />+--------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">code1</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />+--------------------------------+<br /></span><span style="color: #0000BB">10&nbsp;rows&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)&nbsp;</span>
</span>
</code></div>

<p>&nbsp;</p>

<p>I attach the UDF that I&#8217;m testing FYI. I compile it with </p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">cc&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">I</span><span style="color: #007700">/</span><span style="color: #0000BB">usr</span><span style="color: #007700">/</span><span style="color: #0000BB">local</span><span style="color: #007700">/</span><span style="color: #0000BB">infobright</span><span style="color: #007700">/include/</span><span style="color: #0000BB">mysql</span><span style="color: #007700">/&nbsp;-</span><span style="color: #0000BB">O&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">pipe&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">fPIC&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">o&nbsp;test_udf</span><span style="color: #007700">.</span><span style="color: #0000BB">so&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">shared&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">L</span><span style="color: #007700">/</span><span style="color: #0000BB">usr</span><span style="color: #007700">/</span><span style="color: #0000BB">local</span><span style="color: #007700">/</span><span style="color: #0000BB">infobright</span><span style="color: #007700">/</span><span style="color: #0000BB">lib</span><span style="color: #007700">/</span><span style="color: #0000BB">mysql</span><span style="color: #007700">/&nbsp;-</span><span style="color: #0000BB">lmysqlibclient&nbsp;test_udf</span><span style="color: #007700">.</span><span style="color: #0000BB">cc&nbsp;</span>
</span>
</code></div>

<p>under FreeBSD with the port I&#8217;ve written that will hopefully get its way in the port tree.</p>

<p>The UDF is still a proto and it should return 1 when the second argument satisfies the criteria in the first argument:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">+--------------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test'</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">|<br />+--------------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test'</span><span style="color: #007700">);<br />+--------------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test'</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">|<br />+--------------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test2'</span><span style="color: #007700">);<br />+---------------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test2'</span><span style="color: #007700">)&nbsp;|<br />+---------------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />+---------------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test&nbsp;hello'</span><span style="color: #007700">);<br />+--------------------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;+test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test&nbsp;hello'</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">|<br />+--------------------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;-test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test&nbsp;hello'</span><span style="color: #007700">);<br />+--------------------------------------------+<br />|&nbsp;</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;-test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test&nbsp;hello'</span><span style="color: #007700">)&nbsp;|<br />+--------------------------------------------+<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">|<br />+--------------------------------------------+<br /></span><span style="color: #0000BB">1&nbsp;row&nbsp;in&nbsp;set&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">00&nbsp;sec</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">mysql</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">select&nbsp;test_udf</span><span style="color: #007700">(</span><span style="color: #DD0000">'+blah&nbsp;test'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'blah&nbsp;test&nbsp;hello'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">ERROR&nbsp;1123&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">HY000</span><span style="color: #007700">):&nbsp;</span><span style="color: #0000BB">Can</span><span style="color: #DD0000">'t&nbsp;initialize&nbsp;function&nbsp;'</span><span style="color: #0000BB">test_udf</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">missing&nbsp;a&nbsp;boolean&nbsp;operator&nbsp;in&nbsp;the&nbsp;token&nbsp;string&nbsp;</span>
</span>
</code></div>

<p><br />
Thanks</p>

<p>Eriam
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>replication and infobright</title>
      <link rel="alternate" type="text/html" href="http://www.infobright.org/Forums/viewthread/2459/" />      
      <id>tag:infobright.org,2011:Forums/viewthread/.2459</id>
      <published>2011-07-20T10:27:59Z</published>
      <updated></updated>
      <author><name>uwegeercken</name></author>
      <content type="html">
      <![CDATA[
        <p>we have a master/slave setup of two servers using mysql 5.1</p>

<p>we are thinking about a similar setup of an infobright master server and an infobright slave server, where the master replicates to the slave.</p>

<p>question: is this possible with infobright? anything to watch out for?</p>

<p>tks.</p>

<p>uwe
</p>
      ]]>
      </content>
    </entry>


</feed>
