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

Laravel 5.6 eager load nested childrelations

I'm having an issue with getting child relations from a Card object to a User object. The relations are as following: 'User' -> hasOne 'Company' 'Company' -> hasMany 'Card' So the other way around is: 'Card' -> belongsTo 'Company' 'Company' ->…
1
vote
0 answers

single prediction for a neural network ( tensorflow, eager execution )

I'm quite new to tensorflow and python and I'm working on a neural network that is able to classify the sounds of the Urban Sound dataset (https://urbansounddataset.weebly.com/urbansound8k.html). I used the crash course on machine learning tutorial…
SCIUGU
  • 11
  • 2
1
vote
1 answer

Cannot run tf.enable_eager_execution() in Jupyter notebook

Following this doc: , I am trying to run these lines after installing tensorflow with version 1.8.0 and python version is 2.7.13. *import tensorflow as tf tf.enable_eager_execution()* I go to jupyter notebook in the top directory where tensorflow…
1
vote
1 answer

How do I load a checkpoint using tensorflow in eager execution mode?

I am using tensorflow 1.7.0 in eager execution mode. I have the model working, but none of the examples that I have found for saving the model work. This is the code that I am using: checkpoint_directory ='./JokeWords/' checkpoint_prefix =…
user2793857
  • 40
  • 1
  • 5
1
vote
0 answers

How to use OmniFaces @Eager annotation with PrimeFaces?

PrimeFaces and OmniFaces can be used together in a JSF project. My project is using PrimeFaces 6.1 and works fine. However simply declaring the Maven dependency for OmniFaces org.omnifaces
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
1
vote
1 answer

Get object only when relation result is exist [laravel]

I have a problem with get data only when relation query count is more than 0. This is my model of customer with relation class Customer extends Model { protected $table = 'customers'; public function contracts() { return…
underface
  • 45
  • 6
1
vote
1 answer

EAGER and Pagination : Spring MVC + JPA Repository + Hibernate

I have a entity A which has a relation @OneToMany with a entity B (fetch mode = EAGER). Entitity A has other relations in LAZY with other entities too, but isn't important for this problem. Entity B has a relation @ManyToOne with entity A too (fech…
1
vote
2 answers

Eager Loading on autogenerated argument in Laravel

I have this route call: Route::resource('products', 'ProductController', ['except' => ['show']]); So if I enter /products/438/edit it calls my edit method on controller, that is something like that: public function edit(Product $product){} where…
Rocco Milluzzo
  • 997
  • 8
  • 16
1
vote
0 answers

Issues with partitioning

Looking for scale out option for my SQL server database. I have a table that has 15 million rows and it adds 10,000 rows every day. From various options available to scale out I opted for partitioning, as changes need to be done only in database and…
1
vote
1 answer

java.lang.NullPointerException at org.omnifaces.cdi.eager.EagerBeansWebListener.requestInitialized

I am using TomEE Plus 1.7.2 Server and try to start a webapp with OmniFaces included, but I get a Nullpointer exception: WARNUNG: Could not instantiate eager request scoped beans for request /index.xhtml. Possibly the CDI request scope is not…
Lemao1981
  • 2,225
  • 5
  • 18
  • 30
1
vote
0 answers

Nested Eager Loading not work when upgrade to laravel 5.2

I created 3 models are Exams, Questions and Answers. I use nested eager loading to load all questions and answers of specific exams. My function is: public function allBy($examId) { return \Exam::with('questions.answers')->get(); } It works in…
vutaviva
  • 127
  • 2
  • 10
1
vote
2 answers

Eager loading despite Lazy Initialization?

we have an entity that has a lot of ManyToOne, OneToOne, etc relations which themself have again some relations. For example @OneToMany(targetEntity = Season.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "SEASON_ID") public…
Urr4
  • 611
  • 9
  • 26
1
vote
1 answer

Laravel - hasManyThrough and eager loading, get column from related

I'm getting some weird stuff going on when trying to eager load a related model using hasManyThrough. I have a Community model which has a function called 'roommates' to get all Users that have the community id in a column called 'community', see…
BrendanDodd
  • 237
  • 2
  • 10
1
vote
3 answers

Cakephp 3 dynamically build contain

How can I dynamically build the contain in the new cakephp 3 query builder. This is what I have now: $query = $dbTable->find() ->select($contain['select']['fields']) ->contain(function($q) use($array,$contain){ …
chrisShick
  • 1,096
  • 8
  • 21
1
vote
0 answers

Lazy eager in parallel value, is it possible?

The title is right, I want everything. In eager evaluation the functions are evaluated always as soon as the assignment is done. In lazy evaluation this is not done until the value is needed, but then it is a blocking operation, just like in eager…
Trylks
  • 1,458
  • 2
  • 18
  • 31
1 2 3
8 9