On Mar 29, 6:51 pm, hendra kusuma <[email protected]> wrote:
>  And yes, I still will go with paginate even when I change the code,
> It's just my old version using delphi can handle same amount of data
> painlessly

Unsurprising as delphi is much faster than ruby, and I'm guessing the
database library wasn't as abstracted as Sequel is.

> > From your description, I'm assuming you are creating your own PGconn
> > object and using that?  i.e., you are doing:
>
> > conn = PGconn.connect(...)
>
> > If so, it would be easy to just use:
>
> > Yes, I do this
> > DB.synchronize do |conn|
> >  ...
> > end
>
> I think I get the idea how to use this
>
> > In both of these cases, conn is a PGconn object and you would use pg
> > methods to get the data.
>
> I assume we can call conn.exec to run some sql here?
> I'll go and try. Thanks

Yep, that should work.  If you run into any problems, please let me
know.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to