6,018 questions
1
vote
3
answers
160
views
How to lazily load DataTable rows from a large text file using IEnumerable and yield return in C#?
I'm working on a C# application where I need to read a very large text file and convert its contents into a DataTable. However, I don't always need all the rows—so I want to avoid loading the entire ...
306
votes
26
answers
746k
views
How to fix org.hibernate.LazyInitializationException - could not initialize proxy - no Session
I get the following exception:
Exception in thread "main" org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer....
132
votes
17
answers
204k
views
Lazy Loading BrowserModule has already been loaded
I am trying to implement lazy loading but getting error as following
**
ERROR Error: Uncaught (in promise): Error: BrowserModule has already
been loaded. If you need access to common directives such ...
1
vote
2
answers
107
views
Is there a way to parallelize or lazy-load bash completion files?
I'm in bash (version 5.2.37, in Arch-Linux), trying to make my experience a bit better, so I activated tab completions.
I have the following code in .bashrc:
[ -n "$(find /etc/bash_completion.d -...
0
votes
1
answer
213
views
React lazy components with poor internet connectivity and error boundaries: Failed import due to poor connectivity seems to be cached even when online
In an "offline-first" app (which optimistically updates local state and gracefully handles errors by rolling back local state changes, for example), some features may still require internet ...
0
votes
1
answer
103
views
fetchNextPage is triggered immediately on widget build instead of on scroll when using infinite_scroll_pagination with BLoC
Description:
I'm using the infinite_scroll_pagination: ^5.1.0 package in combination with BLoC to implement infinite scrolling in my Flutter app. However, I’m encountering unexpected behavior related ...
0
votes
0
answers
61
views
How to implement efficient pagination in Flutter with local database as SSOT (similar to Android's Paging3)?
Problem Description
I'm building a Flutter app that needs to display a large dataset (100-3000 rows, ~30 fields each) in a ListView with the following requirements:
Local database as Single Source of ...
0
votes
1
answer
1k
views
How to use Lazy scroll for big data in Antd Table
I’m working on a project where I need to implement infinite scrolling in an Ant Design Table component for displaying large datasets. I’m fetching the data from a Laravel backend, and I want to ...
196
votes
12
answers
130k
views
How to convert a Hibernate proxy to a real entity object
During a Hibernate Session, I am loading some objects and some of them are loaded as proxies due to lazy loading. It's all OK and I don't want to turn lazy loading off.
But later I need to send some ...
263
votes
12
answers
170k
views
How can I make a JPA OneToOne relation lazy
In this application we are developing, we noticed that a view was particularly slow. I profiled the view and noticed that there was one query executed by hibernate which took 10 seconds even if there ...
1
vote
3
answers
80
views
How to correctly set the initial page size while implementing a lazy loading listview in Flutter?
I'm trying to implement a lazy loading listview in my Flutter app. Basically when user scrolls to bottom, we fetch more data from the server. Let's say there are totally 100 items and I fetch 10 of ...
39
votes
10
answers
60k
views
Native lazy-loading (loading=lazy) not working even with flags enabled
I am currently trying to update my Website using the new loading="lazy" attribute as shown here: https://web.dev/native-lazy-loading
As seen in the video, everything works as expected, but compared ...
1
vote
1
answer
474
views
Edit HTML of Wordpress Elementor - add custom attribute to image
I'm trying to prevent some images that are above the fold from being lazy loaded but I can't access the html of the images. Only the wrappers.
Is there any way to access plane HTML of Elementor ...
212
votes
6
answers
419k
views
Entity framework linq query Include() multiple children entities
This may be a really elementry question but whats a nice way to include multiple children entities when writing a query that spans THREE levels (or more)?
i.e. I have 4 tables: Company, Employee, ...
196
votes
14
answers
295k
views
What is lazy loading in Hibernate?
What is lazy loading in Java? I don't understand the process. Can anybody help me to understand the process of lazy loading?
1
vote
0
answers
699
views
PrimeVue DataTable Lazy Loading not working with API calls
I'm implementing lazy loading with virtual scrolling in a PrimeVue DataTable. The data should be dynamically fetched from an API as the user scrolls. While the initial data fetch (first 25 accounts) ...
1
vote
1
answer
418
views
Is there a way to disable a lazy loading in Angular v19 standalone components?
In older versions of Angular, where we used to have module-based applications, it would load a module once and even if you close components that are exported by that module - it wouldn't load that ...
1
vote
0
answers
94
views
Migration to Angular 18 and browser-esbuild: TypeError: Failed to fetch dynamically imported module
After migrating to Angular 18 and browser-esbuild (and vite) I installed my app to the testserver.
The app is no longer able to lazy load all submodules. It ends with
After page refresh the lazy ...
1
vote
1
answer
180
views
How to avoid LazyInitializationException when accessing nested lazy collections in Spring Batch with parallel chunk processing?
I’m working on a Spring Batch job with parallel chunk processing. The problem I’m facing is a LazyInitializationException due to nested lazy-loaded collections in my JPA entities.
I’m using ...
0
votes
0
answers
66
views
React-Bootstrap not working properly after implementing lazy loading in React
I am using React-Bootstrap in my React app, and it was working fine until I implemented lazy loading for my components using React.lazy() and Suspense. After enabling lazy loading, React-Bootstrap ...
103
votes
9
answers
120k
views
Entity Framework: How to disable lazy loading for specific query?
Is there any way to disable lazy loading for specific query on Entity Framework 6? I want to use it regularly, but sometimes I want to disable it. I'm using virtual properties to lazy load them.
-2
votes
2
answers
494
views
How to cache a react lazy loaded component and prevent unnecessary unmounts and remounts
I have created a lodable component,
const componentsMap = new Map();
const useCachedLazy = (importFunc, namedExport) => {
if (!componentsMap.has(importFunc)) {
const LazyComponent = lazy(() =&...
2
votes
1
answer
1k
views
What happens with lazy-loaded images above the fold?
Could somebody explain, what happens, if all images, even those above the fold, have attribute loading="lazy"?
Do browsers have any logic to decide to not lazyload images, which are ...
0
votes
4
answers
1k
views
Why my lazy loading isn't working in React?
I'm making a Single Page Application in React and i'm using the "lazy" function and the "Suspense" Component to import components only when is needed. But i have an strange error ...
1
vote
0
answers
1k
views
Lazy Loading Copilot to Neovim but not autocompleting after that
I use Neovim with Lazy.nvim and I want to use GitHub Copilot only for very specific cases. For me, is better to have it unabled than enabled by default, and just activate it when I need to use it (...