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
2
votes
1 answer

Tensorflow v1.4: Layer.input not supported in Eager mode

I understand that Eager mode is a new alpha feature on the nightly builds and that it is not perfect yet, but I do not know if there are any tf.keras workarounds for this problem. The error Layer.input not supported in Eager mode. triggers on the…
abeoliver
  • 152
  • 1
  • 10
2
votes
1 answer

How to Eager Load entire SQL table in LINQ?

Writing my first Linq application, and I'm trying to find the best way to do the following: I want to load the entire employees table at once to populate the cache (used for form autocomplete). I can do - var query = from employee in db.Employees…
Joel
  • 814
  • 2
  • 9
  • 19
2
votes
2 answers

type of map() and filter() operations of Optional

Are the map() and filter() of Optional are lazy like Stream? How can I confirm their type?
Mehraj Malik
  • 14,872
  • 15
  • 58
  • 85
2
votes
2 answers

Order by eager loaded relation count

I have something like this class Item extends Model { ... public function likes() { return $this->hasMany('like'); } ... In my controller I load this item like this $items = Item::with([ ... 'likes', …
SaKer
  • 107
  • 2
  • 11
2
votes
1 answer

how to eager load in a Many to Many relationship in laravel 5?

My user table and item table are related by a many to many relationship, the item table has some data in foreign tables, example color table I have a pivot table that relates the two. My question is, if I want to retrieve all the items associated to…
Chriz74
  • 1,410
  • 3
  • 23
  • 47
2
votes
2 answers

Scala: how to create an "eager evaluated" list with many elements?

If I create list like List(10 to 1000) actually,the List only contains a range object, and the list members are generated dynamically when visiting specific elements. But my requirement is to construct a real List(10,11,12...1000) without having a…
vik santata
  • 2,989
  • 8
  • 30
  • 52
2
votes
1 answer

Can Try be lazy or eager in Scala?

AFAIK, Iterator.map is lazy while Vector.map is eager, basically because they are different types of monads. I would like to know if there is any chance of having a EagerTry and LazyTry that behave just like the current Try, but with the latter…
Trylks
  • 1,458
  • 2
  • 18
  • 31
2
votes
5 answers

Laravel Eloquent eager loading on a different connection

I am trying to use Laravel Eloquent ORM to do a simple one to one relationship on two different connections. Let say I do : MyModel::on('secondary_connection')->get() That is working fine. When I do…
2
votes
1 answer

Force MPI_Send to use eager or rendezvouz protocol

I'm doing a little MPI (openmpi) program in C for a workshop at college. Our objective is to observe the time difference between the two main protocols of MPI, eager and rendezvous, regarding the message size. We haven't worked with MPI before, and…
ShakMR
  • 115
  • 2
  • 10
2
votes
2 answers

Replacing @ManagedBean(eager=true) in JSF22

I am looking for a solution to replace the @ManagedBean(eager=true) annotation in JSF 2.2. I took good note of proposals such as which allow the execution of code at application start up. I need however to access the FacesContext, so this solution…
Ludovic Pénet
  • 1,136
  • 1
  • 16
  • 32
2
votes
2 answers

What are the situations does the JVM decide Eager loading on a class?

what is the difference between lazy loading and eager loading. Under what circumstances does lazy loading and eager loading happens.
Supriya
  • 21
  • 2
2
votes
1 answer

NHibernate - Nested Eager loading is being ignored

I'm trying to eagerly load an entity with nested collections. As follows: Parent -> Children1 -> GrandChild -> GreatGrandChildren Here is one of my 4 attempts (this was the most promising): Parent parent = null; Child child = null; …
WoF_Angel
  • 2,569
  • 9
  • 35
  • 54
2
votes
2 answers

LazyInitializationException in Grails

Grails 2.2.1 My Simple domain: class Article{ SortedSet photoGallery //helper method Photo getMainPhoto(){ Photo mainPhoto = photoGallery.find{it.mainPhoto} return mainPhoto } } The one-to-many photoGallery…
user711189
  • 4,383
  • 4
  • 30
  • 48
2
votes
1 answer

Hibernate/JPA not possible to do eager loading

Working with Spring MVC, Hibernate and JPA. I tried to Load some Collection from Controller and runned into an LazyLoading Exception. So i wanted to switch over to Egar loading. I have two classes (Flightroute and Measurstations wich are in a Many…
MemLeak
  • 4,456
  • 4
  • 45
  • 84
2
votes
1 answer

How can I use ORMLite with objects that contain ArrayLists of other objects?

I have a Android java project with quite complex datatypes including ArrayLists of other complex datatypes. I’m trying to store my data in a database using ORMLite (4.42). I have major problems converting between ArrayLists and ForeignCollection,…
Andreas L
  • 81
  • 1
  • 7
1 2 3
8 9