Re: [Rails] Re: myModel.all returns only 138 records
On Jul 8, 2013, at 3:26 AM, zip py wrote:
> The reason I noticed is that when I did a find all I wasn't getting new
> records that had been added.
>
> However, if I get the new records by their id they definitely exist.
>
> It's got odder this morning, there are now 155 records, and a find all
> returns the latest records, however records id 139 to 145 are missing!
> Again, I can get them by id.
>
> But using Webmin to list the records, I get exactly the same result - so
> it is looking like a database issue.
1) Watch the rails app log to see what SQL is being issued.
2) It really sounds like somewhere you're keeping a transaction open, which is why you see different versions of the db.
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5F4437E6-D294-48B3-87BE-CC6183A6E888%40elevated-dev.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home