Feature.superclass, Story.superclass, Post.superclass all 
return ActiveRecord::Base

Feature.all.unscoped and Post.all.unscoped work fine, they all return 
results.

Story.all.limit(10) executes instantly as expected. 
Story.unscoped.all.limit(10) hangs for an eternity, still waiting for a 
result. Theres 100k records here, which is why I limited the result



On Tuesday, May 5, 2015 at 6:37:43 PM UTC+10, Pat Allan wrote:
>
> And then the next step is to confirm the method `unscoped` works on each 
> of those models from within the Heroku console :)
>
> On 5 May 2015, at 6:32 pm, Pat Allan <[email protected] 
> <javascript:>> wrote:
>
> That all looks correct, but just confirming that it’s the same from the 
> model’s perspective? e.g. Feature.superclass, Story.superclass, 
> Post.superclass?
>
> On 5 May 2015, at 6:12 pm, Robbie Shepherd <[email protected] 
> <javascript:>> wrote:
>
> yep all pretty standard active record models. In Heroku console:
>
> irb(main):003:0> y ActiveRecord::Base.descendants
> ---
> - !ruby/class 'Delayed::Backend::ActiveRecord::Job'
> - !ruby/class 'PgSearch::Document'
> - !ruby/class 'AdminUser'
> - !ruby/class 'Feature'
> - !ruby/class 'Story'
> - !ruby/class 'Category'
> - !ruby/class 'Domain'
> - !ruby/class 'ErrorLogger'
> - !ruby/class 'Newsletter'
> - !ruby/class 'Subscriber'
> - !ruby/class 'SiteConfig'
> - !ruby/class 'Feed'
> - !ruby/class 'Deal'
> - !ruby/class 'Post'
> - !ruby/class 'Player'
> - !ruby/class 'Asset'
> - !ruby/class 'ActiveAdmin::Comment'
> - !ruby/class 'Punch'
> - !ruby/class 'FeatureStory'
> - !ruby/class 'Track'
>
>
>
>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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 http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to