similar to: Metasearch eager loading instead of lazy loading

Displaying 20 results from an estimated 800 matches similar to: "Metasearch eager loading instead of lazy loading"

2010 Aug 21
2
My first gem
Hello all, I just published my first gem, I''ve extracted it out from a project I''m working on and just hope it would be useful to others, and get some community improvment/suggestions. The code is located on github here http://github.com/arjes/Cache-Column Hopefully the README has enough details show what my inevitable goal was. I have a few questions that I found poorly
2010 Sep 08
1
Unintended side-effect from before_remove_const?
Hey all, In troubleshooting a failing test for MetaSearch against 3-0-stable, I came across some undesirable (from my side, anyway) behavior in http://github.com/rails/rails/commit/bf87528b53f1422708ec0188d126cfca824ddc5c. A simple one-liner, it would appear, but AR::Base implements before_remove_const to do a bit of scoped method cleanup... It''s the only thing I can see that might
2011 Mar 10
2
Parslet & Stack size
Hello all, I am using parslet to do some log-file parsing and have run into the "stack level too deep" error, and I am only half-way though with writing the rules for a single line to be parsed. From what I gathered there is no option to easily increase the stack size, it would require rebuilding ruby with some of the C flags set. Is there any other way? Can anyone with parslet
2010 Feb 02
3
deny=yes in userdb
I would like deliver to reject certain users. Since supposedly deliver only uses userdb, not passwd, I can't use deny=yes for that. Or does userdb support deny=yes? Yes, I should rather reject them right in the MTA, but that currently takes too long to implement. Or how to reject gast* in postfix using nss authentication?
2005 Jul 29
0
News for Forward-Thinking Investors
Epic Media Inc. (OTC: EPMI) Retains Auditor, Intends to Become Fully Reporting Shares Outstanding as of July 8, 2005: 22,750,000 Public Float as of July 8, 2005: 4,065,000 (Source: News 7/11/05) Current Price: 0.70 Is the Price of the St0ck Starting to Move Up? Go Check for Yourself Now! RECENT DEVELOPMENTS: (Source: Press Releases) 1)EPIC Media Issued Clean Audit Report from Independent
2006 Mar 09
2
Samba, DOS, ARJ
Hello All, I have problem on workstations with PC-DOS 2000 with MS Network Client 3.0 connected to Samba 3.0.14a-0.4 (default on SLES 9) when I want to use ARJ.EXE (latest version 2.84) and unpack archive xxxx.arj. When this archive is on network drive shared by samba unpacking does infinite loop. For example arj l x:\xxx.arj produce never ending listing (and start of this listing is very slow).
2003 Jun 04
3
h323 and g729
Hi, I have an ansterisk and a cisco 827-4v registered to a Gatekeeper. asterisk has two extensions: exten => 223,1,Dial,OH323/BYEXTENSION@827PD exten => 730,1,Dial(IAX/eduardo@10.0.11.103) (IAX are working well) When I try to call each other, gnugk shows a ARJ: ARJ|10.0.11.112:1720|223:dialedDigits|730:dialedDigits|false|resourceUnavailable I think this could be a codec
2006 Jan 19
0
Limited eager loads and conditions on the eager tables
Hi, Why are limited eager loads and conditions on the eager tables incompatible? Doing a find(:all) without :include causes a select * query to be generated, which means the id fields everwrite each other if associated tables are included using :joins. But using :include, if conditions are placed on the tables listed in :joins then Rails throws an exception when :limit is included too.
2006 Aug 04
2
problem eager loading with sti
Here''s the setup (working off Rails 1.1.4): Class Project belongs_to :employee Class Employee < Person has_many :projects When I try to paginate(:employees, :include => :projects) I get the error "Association named ''projects'' was not found; perhaps you misspelled it?" I can :include other models that the Person class has_many or habtm of, and if I
2006 Aug 07
1
Eager loading wierdness
Consider this problem. I have an Item that has_many Features I want to find all Items with a Feature name of ''foo''. Normally you would do this.. @items = Item.find(:all, :conditions=>["features.name = ?", ''foo''], :include=>:features) This all works fine and dandy except for this problem. If you do this... <% for item in @items %>
2006 Jul 03
0
Eager loading of ''is meant to be nil'' Associations
If I ''find'' using :include, and some included associations are null, then looping through the array executing ''if obj[i].assoc'' accesses the database for a second time (as obj.assoc is nil). eg Topic, has_many posts Post has_one email and posts = Post.find(:all, :condition => ''posts.topic_id = 10'', :include =>
2006 Jun 19
0
Eager loading and acts_as_tree
Hi all, I have a node structure which acts_as_tree. I am pulling the first two levels under the root node with: @root = Node.find(1, :include => [ { :children => [ :children, :parent ] }, :parent ]) How do I pull out the first three levels? What about four? @root = Node.find(1, :include => [ { :children => [ { :children => [:children, :parent] }, :parent ] }, :parent ])
2006 Mar 01
1
Eager loading problem. Help greately appreciated
Each Timesheet has an employee. An employee has a division and a location. I want to find all the timesheets with a status of 2. I then iterate over the timesheet collection and print the timesheet name, employee name, employee divison name, and employee location name. Like so: for t in Timesheet.find(:all,:conditions=>"status=2",:include=>:employee) puts timesheet.date
2006 Mar 14
3
cascading eager loading patch not working in oracle
Notice the "AS" keyword appears many times. Oracle does not support this keyword: ActiveRecord::StatementInvalid: OCIError: ORA-00905: missing keyword: SELECT tim esheets.id AS t0_r0, timesheets.start_date AS t0_r1, timesheets.status AS t0_r2, timesheets.cost AS t0_r3, timesheets.charge AS t0_r4, timesheets.employee AS t0 _r5, employees.id AS t1_r0, employees.name AS t1_r1,
2006 Mar 26
0
Eager loading and polymorphic association
Hi all, Is it possible to do "eager loading" with polymorphic associations ? Ex : I have a Page model that acts as taggable. When I do Page.find(:all), I would like to retrieve all tags associated with a page. Thanks, Thomas. -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
2
Eager loading of polymorphic associations
Polymorphic associations work great until I try to do some eager loading through :include. In my example, the interface name is ":imagehaver". Here''s my little eagerly loading find line: Image.find(params[:id], :include => :imagehaver) All it gives me is an ActiveRecord::EagerLoadPolymorphicError with no further explanation. I haven''t been able to dig up anything
2006 Feb 10
1
Eager loading issue
I have three tables, Invoices, Projects, and Managers. Each manager has many projects. Each project has many invoices. When displaying a list of the invoices, I am using: Invoice.find(:all, :include => [:project]) Since the list shows information from the project table. (For example, a table showing Invoice Date, Project Name). However, I''d also like to show the manager name.
2006 Feb 12
3
Error when Eager Loading "Not unique table/alias"
Hi list, I get the error "Not unique table/alias" (myql 4.1) when trying eager load 2 classes that use the same base class (not STI) Example: <code> class Wedding < ActiveRecord::Base belongs_to :bride, :class_name => ''Person'', :foreign_key => ''bride_id'' belongs_to :groom, :class_name => ''Person'',
2006 Feb 14
0
Help with Eager Association
I''ve gotten eager associations to work before, but for some reason this isn''t working out for me this time. I''ve been scratching my head but can''t quite figure out the nuances of what works and what doesn''t work. I''ve got 3 models: profile, widget_configuration and widgets profile.rb -- has_many :widget_configurations
2005 Dec 14
0
eager loading all associations
Hi Railers, Is there a way to specify all relations in a :include option while find()ing? I have a model with a lot of associations, and sometimes i would like to query for all them. Something like Model.find(params[:id], :include => :all) would be nice. Alternatively, i don''t know if there is a mehod to retrieve all model''s associations, to do something like