Questions tagged [batch-fetching]

16 questions
3
votes
2 answers

eclipselink nested batch fetch

I have set up a very simple model with 3 entities: Department which has multiple (relationship employees) Employee which has multiple (relaionship addresses) Address I would like to batch fetch both Employee and Address from fetching the…
Guillaume Polet
  • 47,259
  • 4
  • 83
  • 117
2
votes
0 answers

Trying to reload data for ASCollectionNode using AsyncDisplayKit / Texture

I am trying to properly refresh an ASCollectionNode from Texture/AsyncDisplayKit whenever a user pulls down to refresh or decides to filter what they see. By using Texture's shouldBatchFetch and willBeginBatchFetchWith delegate and setting the…
2
votes
1 answer

eclipselink batch fetch IN does not work well with multiple tenant

I am using @Multitenant(SINGLE_TABLE) to support multi-tenancy. To fix the n+1 problem, I use batch fetch feature of eclipselink. @Entity public class TestEntity implements Serializable { @Id @Column private Long id; …
Jacky
  • 8,619
  • 7
  • 36
  • 40
2
votes
1 answer

Eager Loading usig Batch Fetching

Is it possible to coerce JPA implemented by Hibernate into doing eager loading using Batch fetching? You are probably wondering why I want to do such a strange thing, so let me explain. We have two Entities A and B. There is a many to 1…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
1
vote
1 answer

How to Solve Error in giving variable to the async function?

Iam trying to pass the number of the page in (fetchPlanets) function put it's gets the following error here is the code import React, { useState } from 'react' import { useQuery } from 'react-query' import Planet from './Planet' const…
1
vote
1 answer

@BatchFetch type JOIN

I'm confused about this annotation for an entity field that is of type of another entity: @BatchFetch(value = BatchFetchType.JOIN) In the docs of EclipseLink for BatchFetch they explain it as following: For example, consider an object with an…
Usr
  • 2,628
  • 10
  • 51
  • 91
1
vote
1 answer

batch fetching with async display kit / cloudkit

I am trying to implement batch fetching to integrate with cloudkit and async display kit. However, when I try to scroll around, I get this error: [NSOperationQueue addOperation:]: operation is finished and cannot be enqueued' Any idea would this be…
Shekar
  • 240
  • 1
  • 5
  • 14
1
vote
0 answers

NamedNativeQuery in Hibernate generates many select statements? How get referenced entities in a batch-way?

I thought I understood hibernate's fetching strategies, but it seems I was wrong. So, I have an namedNativeQuery: @NamedNativeQueries({ @NamedNativeQuery( name = "getTest", resultClass = ArticleOnDate.class, query = "SELECT `a`.`id`…
Roman B
  • 81
  • 7
1
vote
1 answer

Difference between hibernate.jdbc.fetch_size and batch fetch strategy @BatchSize

For the N+1 queries issue in Hibernate, I add @BatchSize(size=20) on collection and class level. And it works very well as it fetches 20 records each time. Now I found that there is a hibernate.jdbc.fetch_size configuration option which I think it…
lynnge
  • 13
  • 1
  • 5
0
votes
0 answers

Abort Snowflake communication (download) via Python

During the communication with Snowflake (via Python), there are intermittent interruptions occurring. Sometimes, these interruptions occur after 10+ hours. It appears that the error occurs during the data download process on the client side. To…
0
votes
1 answer

Eclipselink batch fetch VS join fetch

When should I use "eclipselink.join-fetch", when should I use "eclipselink.batch" (batch type = IN)? Is there any limitations for join fetch, such as the number of tables being fetched?
Jessie Hui
  • 11
  • 1
  • 3
0
votes
1 answer

Reload TableView only at new rows once user scrolls to bottom

I am trying to append new data to Tableview and only reload the Tableview for the new data added. My app has been crashing giving me this error: "attempt to delete row 19 from section 0 which only contains 10 rows before the update'" I would like to…
0
votes
2 answers

Reload TableView only at new added Cells

I have a scrollToBottom function that notifies the app when to beginBatchFetches for content, pics, and checks. //1: User Scrolls all the way down calls beginBatchFetch() func scrollViewDidScroll(_ scrollView: UIScrollView) { let…
magellan
  • 63
  • 7
0
votes
1 answer

very slow marshaling a payload in Groovy

I'm currently developing an Angular/Groovy Application and have a very slow performance by marshaling a payload in backend (groovy). It needs a very long time to get it finish, send it to frontend and render. In backend I have: def getAll(String…
0
votes
1 answer

Receiving items with query and keys range

here's simple structure: $countryCode -autoid13 -category: vehicles -autoid12 -category: sport -autoid11 -category: food -autoid10 -category: sport -autoid9 -category: vehicles -autoid8 -category: food -autoid7 -category: sport …
1
2