On Mar 29, 10:01 am, hendra kusuma <[email protected]> wrote:
> for the time being I solve it ugly way
> I write simple class to cover my connection using pg lib,
> then limit the result to 100
> so yes, there is paging in my desktop app
> it gives me the speed I need, but result in 2 different way to handle
> database
>
> can you give me example on what you mention at point 2?
> If it better I would gladly choose that way

>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:

DB.synchronize do |conn|
  ...
end

In both of these cases, conn is a PGconn object and you would use pg
methods to get the data.

If you are doing something different, please pastie your current code
so I can see what you are doing and provide advice.

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