Hi, I have a ruby script which connects to a MySQL server on a different host and fetches data using the primary key for a specific model. I have the models defined as Sequel models. The script works well for most of the times and gets the data from the database. Occasionally we have seen that the model data results in nil even though the data is present in the database. I had put a fix to allow the model to query for the data multiple times until some fixed threshold if it does not find it for the first time. It had also failed to fetch the data after these queries. Can anyone point me in the right direction on what could be causing this? Also, when I restart the script which essentially resets the sequel database connection things start to work as usual and it is able to find all the data. Also, as I mentioned it only happens very occasionally. Please respond to this. I am using sequel-2.4.0 and Ruby-ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64- linux]. Thanks in advance for your response.
-- 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.
