Questions tagged [eager]

eager database fetching: efficiently load related objects along with the objects being queried.

(contrast with lazy fetching or lazy loading)

Related tags

134 questions
1
vote
1 answer

Rails - Why Eager loading is not working in this case?

I have these 3 models with a has_many through relation: class Wine < ActiveRecord::Base has_many :varietals, :conditions => "varietals.status = 1" has_many :grapes, :through => :varietals end class Grape < ActiveRecord::Base has_many…
alex.bour
  • 2,842
  • 9
  • 40
  • 66
1
vote
1 answer

Rails + UUID + Eager loading

I have 2 models in my rails app, one with an UUID primary key : class User < ActiveRecord::Base belongs_to :country, :foreign_key => 'country_uuid' end class Country < ActiveRecord::Base set_primary_key :uuid has_many :users end When I try…
alex.bour
  • 2,842
  • 9
  • 40
  • 66
1
vote
0 answers

Laravel eager loading not working for HasOne relation

I'm working on a project for registration of members to organization. Each registration contains members, and if there is underaged member, it contains also legal representative. Each member may have multiple registrations, and in one registration,…
1
vote
0 answers

ModuleNotFoundError: No module named 'tensorflow.python.eager'

I installed Tensorflow packages but it gives an error like this: I also upgraded tensorflow version in case:
Zrn-dev
  • 99
  • 5
1
vote
1 answer

Trying to fetch related entity on JHipster and being tricked by Jackson?

I am trying to build an item -> details page on my application involving entities EcmOrder ->> EcmOrderItem -> Product as described below: JDL model fragment: By using side by side techniques, I extended the repository, service and resource classes…
1
vote
1 answer

Is it possible to eager load over two one-to-many relationships in NHibernate?

Given an object hierarchy such as the following: class Category { List SubCategories; } class SubCategory { List Products; } class Product { } Is it possible to eager load the whole hierarchy using NHibernate? I…
Erik Öjebo
  • 10,821
  • 4
  • 54
  • 75
1
vote
3 answers

Flex-Cairngorm/Hibernate - Is EAGER fetching strategy pointless?

I will try to be as concise as possible. I'm using Flex/Hibernate technologies for my app. I also use Cairngorm micro-architecture for Flex. Because i'm beginner, i have probably misunderstand something about Caringorm's ModelLocator purpose. I have…
slomir
  • 407
  • 2
  • 6
  • 16
1
vote
0 answers

TF2.x eager mode can not support ParameterServerStrategy now?

TF version: latest master , b083cea Below is a simple example using TF2.0 eager mode, and it ran successful with MirroredStrategy, but error with ParameterServerStrategy. Can TF2.0 eager mode support ParameterServerStrategy now ? I did not found a…
1
vote
1 answer

Boost Spirit x3: parse delimited string

I'm writing yet another boring calculator parser with Spirit X3 and I've come to a problem: I've defined 2 literals, "cos" and "cosh", each of which expect to be followed by a number. The rules I've written are: const std::string COS_TAG =…
Etchelon
  • 832
  • 11
  • 27
1
vote
1 answer

Eager Mode: Using Sequentials within tf.keras.Model

I am transitioning from Pytorch to TensorFlow 1.12 and would like to know whether it is possible to define tf.keras.Sequential classes within a tf.keras.Model and run those in eager mode. I constructed this minimum non-working example and would be…
Carl
  • 11
  • 1
1
vote
0 answers

TensorFlow 2.0: Using GradientTape to do manual updates of parameters

I am trying to do a simple one layer neural network using GradientTape from TensorFlow 2.0 and update all the parameters manually but it doesn't seem to work. Here's one iteration of the training loop: W = tf.Variable(tf.random.normal([784,10],…
1
vote
1 answer

OneToMany LazyInitializationException when collection is empty

I know there are dozens of questions with the same topic but I cannot figure it out why they are not working in my case. I have two tables, one with the name of Account and one with CustomerRelations, and there is a one-to-many relarionship between…
dorcsi
  • 295
  • 2
  • 6
  • 24
1
vote
1 answer

objection.js modifyEager .as('count') doesn't seem to do anything to .count()

So I want to get the count of comments in a post rather than all the comments themselves I've got it to work with modifyEager like so but the as('count') seems to be doing nothing in this case .eager('comments').modifyEager("comments", builder => { …
Avedis Kiyici
  • 67
  • 1
  • 7
1
vote
1 answer

NotFoundError: No registered 'ZerosLike' OpKernel for GPU/ tf.eager and keras

I had written down my own network reproducing pix2pixHD. This is a simple modification of pix2pix just replicating Generators into two, and discriminators into three, which are handling different level of resolutions. But when I try to train, it…
Quanlisp
  • 13
  • 1
  • 4
1
vote
1 answer

How to eager load an association from a eager graph association using Sequel Ruby gem?

I have the following models in my application: class Order < Sequel::Model many_to_one(:client, class: 'Client', key: :client_id) end class Client < Sequel::Model one_to_many(:images, class: 'Image', key: :client_id, eager:…
Everton
  • 13
  • 3
1 2 3
8 9