On Monday, April 10, 2017 at 5:47:58 PM UTC-7, Andrei (L.A.) wrote:
>
> I am getting random timeouts of sql queries (a long import with 300k 
> inserts). I am wondering if there's a possibility to pass on the :timeout 
> option to the tinytds adapter as a part of the Sequel.connect statement?
>
> https://github.com/rails-sqlserver/tiny_tds (ctrl+F timeout)
>
> I noticed that it is possible to pass the command_timeout option but am 
> not sure if it's the same thing/gets translated for tinytds. 
> https://github.com/jeremyevans/sequel/blob/master/doc/opening_databases.rdoc 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjeremyevans%2Fsequel%2Fblob%2Fmaster%2Fdoc%2Fopening_databases.rdoc&sa=D&sntz=1&usg=AFQjCNEnwcCl9v2JkdUnQgYQ_ivngkNyoA>
>
> Thank you.
>

Sorry for the earlier response, posted accidentally from my phone.  As it 
says in the connecting to a database guide: "The connection options are 
passed directly to tiny_tds".  So you should be able to just use the 
:timeout option if that is the tiny_tds option.
 
Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to