> > Unsurprising as delphi is much faster than ruby, and I'm guessing the > database library wasn't as abstracted as Sequel is. > > Honesly, I am surprised about how slow ruby is. Before now I never had a problem with speed using ruby.
> > > 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, by using synchronize and limiting result I get speed that I need of course in the end I must use paginate, but that is easily handled Question here when is it a good time to use model? Is it ideal for insert and update data? It make code looks real nice -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -- 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.
