<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Followup. I
finished adding flush_lines and flush_timeout to the sql driver. They
do what you'd expect, a commit after X number of lines or X seconds.<br>
I also fixed a bug that was causing a "." (dot) in the table name to be
replaced by an underscore (dots are fully valid in oracle as they
denote schema-table separation).<br>
I'm starting on converting the code over to using bind variables as
well. The performance difference between plain text queries and
prepared statements is very large. Especially since we'll be doing
hundreds of inserts per second.<br>
<br>
One of the users in the IRC channel suggested I ask about any licensing
issues. Not sure what exactly since the syslog-ng code is GPL, but
figured I'd ask anyway.<br>
If all is kosher, once all my changes are complete, I can send a patch
file.<br>
</font></font><br>
Sent: Tuesday, March 02, 2010 12:46:12 PM<br>
From: Patrick H. <a class="moz-txt-link-rfc2396E" href="mailto:syslogng@feystorm.net">&lt;syslogng@feystorm.net&gt;</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a> <br>
Subject: [syslog-ng] commit with the oracle sql driver
<blockquote cite="mid:4B8D6B04.50008@feystorm.net" type="cite"><font
 size="-1"><font face="Helvetica, Arial, sans-serif">So, extensive
googling has failed me on this. I'm using the sql driver to output to
an oracle database, with debugging mode, I can see that the insert
queries are indeed being executed, however my tables remain empty.<br>
I've been through the source code, and it doesnt look like a commit is
being performed anywhere. Though my google efforts, I did find one
reference where someone patched the libdbi-drivers oracle driver to do
a commit on success after every query, but that is insanely expensive
(and ugly).<br>
  <br>
I have started modifying the code to add the flush_lines and
flush_timeout option to the sql driver. But before I got too carried
away, I was wondering why this is the way it is the way it is, or if
I'm missing something.<br>
  </font></font>
  <pre wrap="">
<hr size="4" width="90%">
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

  </pre>
</blockquote>
</body>
</html>