Re: [jruby-user] [ANN] ruby-pg for JRuby

Tim Uckun <[email protected]> Fri, 27 Feb 2015 13:13:35 +1300
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAGuHJrOXp8fBrnou7Ys7_w3+4YOJLDNK0MXF+SmK1xKL_cS=5A@mail.gmail.com>
Great. Thanks for doing the hard yards!.

Do you have any performance numbers? Will the async IO result in better
performance?

On Fri, Feb 27, 2015 at 12:59 PM, John Shahid <[email protected]> wrote:

> good question. there are two advantages that i can think of, first is
> asynchronous io and second is that jruby-pg is a drop in replacement for
> the ruby-pg gem. also afaik the jdbc interface of postgresql has some
> limitations regarding large object api and others that i don't remember off
> the top of my head. granted this isn't something that everyone needs,
> especially new projects, but it was a blocker to switch to jruby for some
> teams in the past.
>
> cheers,
>
> js
>
> On Thu, Feb 26, 2015 at 3:32 PM Tim Uckun <[email protected]> wrote:
>
>> What would be the advantage of this gem vs the JDBC gems?
>>
>> On Fri, Feb 27, 2015 at 7:05 AM, John Shahid <[email protected]> wrote:
>>
>>> Hi everyone,
>>>
>>> Sorry for the double post. I posted this earlier to the announcements
>>> mailing list, but didn't get any feedback. So I'm posting here in the users
>>> mailing list hoping to get more audience.
>>>
>>> Some of you might have come across the JRuby friendly ruby-pg gem
>>> https://github.com/headius/jruby-pg. Unfortunately I started this work
>>> more than a year ago. I didn't have time to fix the issues that were
>>> reported or keep it up to date with the ruby-pg gem. Recently, I got some
>>> leisure time and rewrote a big chunk of the gem to make it compatible with
>>> 0.17.1. I've tested the gem with JRuby 1.7.18 and all the tests pass. The
>>> active record (v3.2.21) tests pass as well.
>>>
>>> That makes confident to release the gem, may be a release candidate for
>>> now. It looks like the ruby-pg guys are willing to merge the changes in
>>> their repo but it might take a while to do so. I think this gem should be
>>> released separately for the now. Unless I get any feedback soon, I'll go
>>> with jruby-pg.
>>>
>>> Cheers,
>>>
>>> JS
>>>
>>
>>