fetching-strategy Questions

4

Solved

Why should I use QueryClient.prefetchQuery instead of useQuery for caching in React-Query? I don't see any valuable use case. If I want to prefetch, I could just use useQuery when the app is loaded...

3

Solved

I've been playing sometimes with graphQL. Before graphQL, we normally use REST API. Many developers said that graphQL fixes some problems of the REST. (e.g. over-fetching & under-fetching). I c...
Carrico asked 15/6, 2017 at 10:17

2

Solved

I am trying to understand the difference between LEFT JOIN and LEFT JOIN FETCH in Hibernate. Can anyone explain this? Thanks
Stroll asked 27/7, 2011 at 1:41

4

Solved

Is there a way to change the JPA fetch type on a single method without editing the entity object? I have a shared ORM layer consisting of JPA entity classes. This ORM layer is accessed by two DAO ...
Putty asked 24/6, 2009 at 15:6

2

Solved

I found this description of the batch-fetching algorithm in "Manning - Java Persistence with Hibernate": What is the real batch-fetching algorithm? (...) Imagine a batch size of 20 and a total...

4

I'm trying to load all the collections eagerly, using NHibernate 3 alpha 1. I'm wondering if this the right way of using ThenFetch()? Properties with plural names are collections. The others are j...
Hospitalization asked 3/8, 2010 at 15:18

2

Solved

I have the following HQL statement: select distinct t from TaskEntity as inner join fetch t.Case as c inner join fetch c.Client as client inner join fetch c.Matter as matter However, despite M...
Commerce asked 16/4, 2012 at 15:15

2

Solved

I have gone thru some of the links for hibernate fetch strategies on net.One brief and concise link i liked is http://www.mkyong.com/hibernate/hibernate-fetching-strategies-examples/. We have four...
Pyelonephritis asked 23/1, 2012 at 10:58

5

Solved

I have a 3-leveled hierarchy of entities: Customer-Order-Line, which I would like to retrieve in entirety for a given customer, using ISession.Get(id). I have the following XML fragments: customer...
Ethbun asked 2/12, 2008 at 0:44

1

I've got this object graph: // Lots of stuff omitted for brevity; these are all virtual properties and there // are other properties which aren't shown on all classes. class A { B b; C c; DateT...
Conjuration asked 31/12, 2010 at 23:0

3

I am trying to eagerly fetch collections using selects, but all I am getting is inner joins. What is going on? Session.CreateCriteria(typeof(Foo)) .SetFetchMode("Bars", FetchMode.Select) .Create...
Slipover asked 15/12, 2009 at 4:19

2

Solved

I have a problem with SetFetchMode call in Criteria API in following query: DetachedCriteria.For<User>() .Add<User>(u => u.Status == UserStatus.Live) .CreateAlias("UniqueId", "uid...
Floreated asked 8/10, 2010 at 9:46

1

Solved

I have a Hibernate domain object that gets loaded by different parts of the application. Sometimes it's advantageous to lazy load every association and others it's better to load the entire thing i...
Bitstock asked 25/8, 2009 at 16:55
1

© 2022 - 2024 — McMap. All rights reserved.