Questions tagged [fetching-strategy]
78 questions
0
votes
1 answer
Session.Get loads with N+1 even when lazy=false
I have entities like these:
public class User
{
public virtual int Id { get; set;}
public virtual Iesi.Collections.Generic.ISet Characters { get; set; }
}
public class Character
{
public virtual int Id { get; set;}
…

Vlad
- 3,001
- 1
- 22
- 52
0
votes
1 answer
Handling many different types of roles and data retrieval
Just to note, I'm using Laravel on the backend. Let's say you had 10 different user levels in an task management system. All these user levels have different access to the tasks themselves, as well as the actual attributes for each task. For…

kenshin9
- 2,215
- 4
- 23
- 38
0
votes
1 answer
Eager fetching with Joins
Please could someone help me understand the concept of - "Eager fetching with Joins" in Hibernate with a simple example query and table depicting the result of the query. I have searched the net but unable to get an explanation with a good example.…

sid
- 129
- 3
- 11
0
votes
1 answer
Nhibernate - Paging and eager loading entities
I have two entities, a team and an employee.
I want get a list of employees with eager loaded teams. The list has to be paged.
public PagedList GetAllEmployeesWithEagerLoadedTeams(int page, int pageSize)
{
var criteria = GetSession()
…

Rookian
- 19,841
- 28
- 110
- 180
0
votes
1 answer
Fetching of duplicate record
I want to fetch duplicate records from a table (n-1 records out of n records). How should such a query look?
example (table name = markslist):
Name Marks
Janny 9
raj 10
raj 10
raj 10
rose …

Beginer
- 1
- 1
- 1
0
votes
1 answer
Lazy Loading vs. Batch Download in Android (if all images will be used0
I am building an Android app that shows full screen images in a carousel. The app downloads 100 objects from the server and stores them in the app. Each object is represented by a full-screen image and some text.
The user will see all downloaded…

alexyes
- 773
- 2
- 7
- 14
0
votes
1 answer
How Could i fetch the data from Database in a Drop Down menu
I tried the following but id didn't work
//PHP CODE
$query = "SELECT kategorite FROM kategorite";
$data = mysql_query($conn, $query);
$makes = array();
while($row = mysql_fetch_array($data))
{
array_push($makes, $row["Lloji"]);
}
echo…

MrVampo
- 73
- 1
- 9
0
votes
1 answer
Hibernate modeling and fetching strategies: what to do with sparse little pieces of information
Environment:
Java
Spring
MVC pattern
Hibernate
Description:
Ok, let's say I have a web application with two domain objects:
User
Report
a User can have a lot of Reports (one to many relation). Please consider that a Report is a very complex…

MaVVamaldo
- 2,505
- 7
- 28
- 50
0
votes
1 answer
What is your data loading strategy for pins on the map on the iOS?
I have developed an iOS app with native map showing custom pins on the map? Data behind the pins is loaded on demand and based on the movement around the map. I am setting a radius based on the current position and if the map goes out of this region…

Ivan von Turkovich
- 97
- 2
- 6
0
votes
1 answer
Hibernate : many ScrollResults to fetch full database (like subquery strategy)
I try to dump to file full database's contents with the least number of requests.
Thus, How to enable subquery fetching with query.scroll ?
My objects :
I have database like :
Employee (1) ------ (0..n) Address
Employee class…

Thomas Duchatelle
- 385
- 2
- 14
0
votes
1 answer
GridFS file retrieval strategy
I have been looking at GridFS to store images and other files.
It has some really nice features but we have to retrieve and store files at some temporary location to render html which costs us cpu time.
What would be a good strategy to use GridFS…

Udayan
- 45
- 4
0
votes
2 answers
iphone tabbar where to load data?
I have two tabbar items(views) that use the same data, whats the best solution for getting the data?
Make two fetch request for the same
data in each view controller.
Make one fetch request in
appDelegate, and use
sharedApplication to get to the…

Ton
- 365
- 4
- 19
0
votes
1 answer
Faster way of fetching data from database or from List?
Can anyone please elaborate which is the faster way of fetching data. Fetching it from the database directly or fetching it from a List?
Suppose, in a java web application some data need to be operated on which are in databas, and they are also in…

Pranjut
- 1,747
- 5
- 18
- 31
0
votes
2 answers
Nhibernate producing proxy despite HQL fetch
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 Matter having a FETCH against it, it's still returning…

Stuart.Sklinar
- 3,683
- 4
- 35
- 89
-1
votes
1 answer
Difficulty in Fetching data for logged in user
Here is my login process, I want a same dashboard but data will be different for each user. But I am stuck with creating uid variables to get data for each login user.
if(isset($_POST['login_btn']))
{
$email_login=$_POST['email'];
…