<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>MariaDB Blog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-0a9cbd89" type="application/json"/><link>http://montyprogram.disqus.com/</link><description></description><atom:link href="http://montyprogram.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 09 May 2013 08:30:36 -0000</lastBuildDate><item><title>Re: Database Master-Slave Replication in the Cloud</title><link>https://blog.mariadb.org/database-master-slave-replication-in-the-cloud/#comment-890813960</link><description>&lt;p&gt;A big thanks to Jelastic for letting us publish it here.&lt;/p&gt;

&lt;p&gt;We should probably do a hands-on post about MariaDB Galera Cluster. Until we do, the Galera section of the Knowledgebase has some good articles: &lt;a href="https://kb.askmonty.org/en/galera/" rel="nofollow"&gt;https://kb.askmonty.org/en/gal...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Bartholomew</dc:creator><pubDate>Thu, 09 May 2013 08:30:36 -0000</pubDate></item><item><title>Re: Database Master-Slave Replication in the Cloud</title><link>https://blog.mariadb.org/database-master-slave-replication-in-the-cloud/#comment-890526486</link><description>&lt;p&gt;Thanks Daniel!!&lt;/p&gt;

&lt;p&gt;An excellent and Simple introduction and Hands-on to Master-Slave replication in MariaDB.&lt;/p&gt;

&lt;p&gt;Couldn't have been simpler!&lt;/p&gt;

&lt;p&gt;How do you set up Multi-Master Replication.  &lt;br&gt;Is there any limit on the number of masters/ slaves?&lt;/p&gt;

&lt;p&gt;Thanks &amp;amp; rgds,&lt;br&gt;JR Kumar&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Raj Kumar</dc:creator><pubDate>Thu, 09 May 2013 03:03:42 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-890489521</link><description>&lt;p&gt;Roland, when I say "user doers not care where time is spent", I mean the end-user, who wait for web page to load, and who does not know there is java and database behind. Of couse, one can argue that my own users (users of that driver) are DBAs, programmers, consultants etc, people who use JDBC  to write web apps. Yes, these people hopefully do care and measure etc.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladislav Vaintroub</dc:creator><pubDate>Thu, 09 May 2013 02:27:36 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-889777159</link><description>&lt;p&gt;Nope, it is one-time connection and thousands of exactly the same queries. The speed of the connect was not measured at all, only of the queries. Connect/Disconnect is another story. I might write about this next time, this is where pooling would matter.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladislav Vaintroub</dc:creator><pubDate>Wed, 08 May 2013 11:58:24 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-889174369</link><description>&lt;p&gt;Vlad, thanks for the extra info. Much appreciated. I agree that all performance gain is good, and surely as a developer I would care about these differences. &lt;/p&gt;

&lt;p&gt;I don't agree the user doesn't care where the time was spent though; I mean, if they experience performance problems that can be explained mainly in terms of waiting for the network or database io, then they simply won't be able to solve that by switching drivers. If they aren't aware that switching drivers doesn't make the difference they need or expect, they will just be disappointed spending work and time on something that didn't solve their problems.&lt;/p&gt;

&lt;p&gt;(Of course, I'm not saying it is any driver developer's fault that the user doesn't understand what problem they have on their hands :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Bouman</dc:creator><pubDate>Wed, 08 May 2013 01:59:33 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-888704943</link><description>&lt;p&gt;You're making a new connection for each query in this benchmark, correct? Would the performance difference between different drivers go away if using connection pool?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Tue, 07 May 2013 20:23:53 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-888440639</link><description>&lt;p&gt;no clue abotu real scenario, I hope  there are people better qualified to know life than me:) With large result sets, the problems  often is that drivers reads the full huge result sets into memory, and programs die of OOM.  &lt;br&gt;Reading full result set into memory - this  mode is default in JDBC connectors too ( Drizzle JDBC does not know any other mode) &lt;/p&gt;

&lt;p&gt;ConnectorJ and MariaDB JDBC however  have an option to read big results row-by-row ("streaming")&lt;/p&gt;

&lt;p&gt;It is activated with &lt;/p&gt;

&lt;p&gt;stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY,&lt;br&gt;              java.sql.ResultSet.CONCUR_READ_ONLY);&lt;br&gt;stmt.setFetchSize(Integer.MIN_VALUE);&lt;/p&gt;

&lt;p&gt;If streaming is used, problem that often "in real life" happens is that client does not read off the result set fast enough, and server blocks in socket writ()e, and if it waits long enough (net_write_timeout), and after that it just closes client's connection. ConnectorJ increases net_write_timeout  before executing streaming query. MariaDB JDBC does not do that but of course people can set their timeouts higher themselves, e.g in the connection URL'a "sessionVariables=net_write_timeout=1000" &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladislav Vaintroub</dc:creator><pubDate>Tue, 07 May 2013 15:37:34 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-888396552</link><description>&lt;p&gt;Good work vlad! :) Would be interesting to see the difference in handling a more real scenario (where I assume the difference will be more or less zero) and big result sets, I had lot of issues in the past with different connectors... Also would be good during your tests to see the CPU usage...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Massimo</dc:creator><pubDate>Tue, 07 May 2013 14:43:59 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-888384249</link><description>&lt;p&gt;About ConnectorJ DML detection - The standard says it this way&lt;br&gt;"If the SQL string being executed does not return a ResultSet object, the method executeQuery throws an SQLException". It does not say  - driver should attempt to parse SQL query in order to find out whether it  possibly would  be an update.&lt;/p&gt;

&lt;p&gt;About realistic scenario : I'm not sure whether good performance is noticeable in realistic scenario either. I had to improvise, and I choose those queries -  I was curious myself whether I could dig something useful , or learn something new . I did and I shared some tidbits. &lt;/p&gt;

&lt;p&gt;I still think every milli-and-microsecond saved on client is good, user does not care where it  is spent.&lt;/p&gt;

&lt;p&gt;Yes, I had ran some more tests with larger result sets, and with bigger rows, and connect/disconnect, however I did not have time to really understand the results in detail, and I did not want to publish numbers without explanation. I also think my "large result set" tests sucked because they were retrieving from information schema, it has prohibitive overhead. They were also least conclusive.&lt;/p&gt;

&lt;p&gt;However one thing that I noticed is that (already fixed) Drizzle bug was noticable, also on much slow queries with ~60 qps, and even with ~20 qps. IIRC, ConnectoJ driver was slightly better that MariaDB on blobs , but bad on connect/disconnect, even with "useConfigs=maxPerformance". Drizzle  JDBC had stellar connect/disconnect (it does nothing upon establishing connection), very closely followed by MariaDB with "fastConnect=true".  One day, when I have profiled those cases, it could make sense to write about it again.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladislav Vaintroub</dc:creator><pubDate>Tue, 07 May 2013 14:28:54 -0000</pubDate></item><item><title>Re: MariaDB Introduces Atomic Writes</title><link>https://blog.mariadb.org/mariadb-introduces-atomic-writes/#comment-888311906</link><description>&lt;p&gt;Yes, the atomic writes do extend Endurance by significantly reducing write amplification.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vince Fleming</dc:creator><pubDate>Tue, 07 May 2013 12:57:35 -0000</pubDate></item><item><title>Re: MariaDB Introduces Atomic Writes</title><link>https://blog.mariadb.org/mariadb-introduces-atomic-writes/#comment-888309783</link><description>&lt;p&gt;That depends on other manufacturers adopting the API.   It's a public API.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vince Fleming</dc:creator><pubDate>Tue, 07 May 2013 12:55:05 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-887916591</link><description>&lt;p&gt;Thanks for sharing! Couple of remarks:&lt;/p&gt;

&lt;p&gt;"If absolutely necessary, throwing an exception can be delayed, until the client finds out that the server sent an OK packet instead of a result set."&lt;/p&gt;

&lt;p&gt;Well, the problem is that in this case the server would already executed the UPDATE statement, right? Even if the underlying storage engine would allow a rollback, you really don't want to go near that position. Or maybe I'm missing something.&lt;/p&gt;

&lt;p&gt;Regarding the benchmark itself: Personally I'm not sure the slightly better performance of the mariadb driver is noticeable in a more realistic scenario (i.e. real queries). My assumption is that in almost all cases database io, and  in case of resultsets, network  will sooner be a limiting factor than raw java performance. &lt;/p&gt;

&lt;p&gt;However, it'd be really interesting if my assumption could be proved false. Have you done such tests? If not, that's ok, maybe you'll find time to do so in the future. If you have done such tests, then it'd be nice if you could share the result. If it turns out it doesn't make much of a difference then it's not necessary to post detailed data; I would be happy to take your word for it.&lt;/p&gt;

&lt;p&gt;Despite these reservations, I think this does show that doing benchmarks is still useful from a standpoint of quality, since it helped identify and fix a drizzle bug. Drizzle has traditionally refrained from publishing benchmarks on the grounds that they are unrealistic and aren't trusted anyway unless executed by an independent party; this exercise shows that such benchmarks still have value since they can identify bugs or poorly optimized code.&lt;/p&gt;

&lt;p&gt;Another interesting observation is the comparison of C client lib versus JDBC driver. This is yet another confirmation that the myth that Java is slow should be buried. &lt;/p&gt;

&lt;p&gt;So, thanks again! Enjoyable read.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Bouman</dc:creator><pubDate>Tue, 07 May 2013 04:03:32 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-886930479</link><description>&lt;p&gt;Oh, sorry, I guess I got you confused with another Vlad :) oops.  Anyway, great idea with respect to overriding the method.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Swanhart</dc:creator><pubDate>Mon, 06 May 2013 17:56:47 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-886834568</link><description>&lt;p&gt;Justin, you must have met someone else at PLMCE . Its been a while I attended a conference (last one was 2011, still OReilly MySQL conf :) But thanks anyway!&lt;br&gt;After some thinking, I believe ConnectorJ  bug might be solved without contacting JVM folks - since ConnectorJ derives NamedPipeSocket from a Socket, they could just l override the culprit method Socket.shutdownInput() to do nothing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladislav Vaintroub</dc:creator><pubDate>Mon, 06 May 2013 16:38:25 -0000</pubDate></item><item><title>Re: On performance of JDBC drivers.</title><link>http://blog.mariadb.org/on-performance-of-jdbc-drivers/#comment-886764875</link><description>&lt;p&gt;Given that Oracle owns MySQL and Java you think they could prioritize that bug fix with the named pipes :)&lt;/p&gt;

&lt;p&gt;Also, it was great meeting you at PLMCE.  Thanks for letting me show you Shard-Query.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Swanhart</dc:creator><pubDate>Mon, 06 May 2013 15:31:57 -0000</pubDate></item><item><title>Re: MariaDB 10.0.2-alpha Now Available</title><link>https://blog.mariadb.org/mariadb-10-0-2-alpha-now-available/#comment-881308567</link><description>&lt;p&gt;10.0.2 packages for Debian and Ubuntu are now available.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Bartholomew</dc:creator><pubDate>Wed, 01 May 2013 11:00:27 -0000</pubDate></item><item><title>Re: MariaDB 10.0.2-alpha Now Available</title><link>https://blog.mariadb.org/mariadb-10-0-2-alpha-now-available/#comment-877807217</link><description>&lt;p&gt;As mentioned in the release notes at &lt;a href="https://kb.askmonty.org/en/mariadb-1002-release-notes/" rel="nofollow"&gt;https://kb.askmonty.org/en/mar...&lt;/a&gt; the Ubuntu/Debian packages have been delayed. Unfortunately it's taken longer than normal to get them ready. They should appear soon.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Bartholomew</dc:creator><pubDate>Sat, 27 Apr 2013 08:17:48 -0000</pubDate></item><item><title>Re: MariaDB 10.0.2-alpha Now Available</title><link>https://blog.mariadb.org/mariadb-10-0-2-alpha-now-available/#comment-877786282</link><description>&lt;p&gt;10.0.2 doesn't appear to be in the repositories, checking &lt;a href="http://mirror3.layerjet.com/mariadb/repo/10.0/ubuntu/dists/quantal/main/binary-amd64/Packages" rel="nofollow"&gt;http://mirror3.layerjet.com/ma...&lt;/a&gt; lists 10.0.1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Athalas</dc:creator><pubDate>Sat, 27 Apr 2013 07:21:46 -0000</pubDate></item><item><title>Re: MariaDB Introduces Atomic Writes</title><link>https://blog.mariadb.org/mariadb-introduces-atomic-writes/#comment-877576357</link><description>&lt;p&gt;Will this ever work on non-FusionIO SSDs?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Sat, 27 Apr 2013 02:13:27 -0000</pubDate></item><item><title>Re: MariaDB Introduces Atomic Writes</title><link>https://blog.mariadb.org/mariadb-introduces-atomic-writes/#comment-876237177</link><description>&lt;p&gt;Do atomic writes reduce flash storage wearing? Have you measured the affect on amount of total blocks written on a block device?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ilari Stenroth</dc:creator><pubDate>Fri, 26 Apr 2013 00:28:51 -0000</pubDate></item><item><title>Re: MariaDB well-represented at Percona Live MySQL Conference</title><link>https://blog.mariadb.org/mariadb-well-represented-at-percona-live-mysql-conference/#comment-865189759</link><description>&lt;p&gt;Waiting for slides&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Damian Tylczyński</dc:creator><pubDate>Tue, 16 Apr 2013 10:53:14 -0000</pubDate></item><item><title>Re: MariaDB participates in Google Summer of Code 2013</title><link>http://blog.mariadb.org/mariadb-participates-in-google-summer-of-code-2013/#comment-859472834</link><description>&lt;p&gt;Hi @facebook-100001195552708 - yeah it was removed because it might have taken a lot longer to do than a summer. To ask questions, send email to maria-discuss@lists.launchpad.net and feel free to add your own ideas if you'd like to work on something&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">colincharles</dc:creator><pubDate>Thu, 11 Apr 2013 03:54:18 -0000</pubDate></item><item><title>Re: MariaDB participates in Google Summer of Code 2013</title><link>http://blog.mariadb.org/mariadb-participates-in-google-summer-of-code-2013/#comment-858935523</link><description>&lt;p&gt;Where do we ask questions about the projects and is the list of projects on ideas page final ? The Full text search plugin project has been removed !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amit Kartik</dc:creator><pubDate>Wed, 10 Apr 2013 15:13:05 -0000</pubDate></item><item><title>Re: Slackware and Arch Linux switch to MariaDB as a default</title><link>https://blog.mariadb.org/slackware-and-arch-linux-switch-to-mariadb-as-a-default/#comment-854722510</link><description>&lt;p&gt;No worries, everything you've learned about MySQL can be applied to MariaDB.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Bartholomew</dc:creator><pubDate>Sat, 06 Apr 2013 21:38:20 -0000</pubDate></item><item><title>Re: Slackware and Arch Linux switch to MariaDB as a default</title><link>https://blog.mariadb.org/slackware-and-arch-linux-switch-to-mariadb-as-a-default/#comment-854576990</link><description>&lt;p&gt;but I just started learning MySQL!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Comito</dc:creator><pubDate>Sat, 06 Apr 2013 16:15:19 -0000</pubDate></item></channel></rss>