Change SourceFiles to be Fetch.Lazy
See original GitHub issueIs your feature request related to a problem? Please describe. Source files can consume a large amount of memory; we should avoid fetching them unless needed by the client.
Describe the solution you’d like
- In WorkflowVersion, annotate sourceFiles with
FetchType.LAZY
instead ofFetchType.EAGER
. - That may not be enough though; if anything access the source files they’ll end up getting loaded anyways.
- Force fetching of sourceFiles via a new endpoint? Or via a query parameter?
- UI apparently doesn’t use source files; except for the hosted entries.
- May require UI corresponding UI changes
Additional context Overlaps with #3453 and #3442 . This might end up being addressed in either or both of those instead.
┆Issue is synchronized with this Jira Story ┆Fix Versions: Dockstore 1.10 ┆Issue Number: DOCK-1355 ┆Sprint: Sprint 36 Krill ┆Issue Type: Story
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
The best way to lazy load entity attributes using JPA and ...
EAGER . However, the attribute fetch strategy can be set to FetchType. ... entity classes are compiled from their associated source files.
Read more >How can I make a JPA OneToOne relation lazy - Stack Overflow
It's possible to specify join fetch in HQL and / or explicitly set fetch mode via Criteria API which would take precedence over...
Read more >Lazy Configuration - Gradle User Manual
Gradle represents lazy properties with two interfaces: Provider represents a value that can only be queried and cannot be changed. Properties with these...
Read more >Lazy-loading feature modules - Angular
To lazy load Angular modules, use loadChildren (instead of component ) in your AppRoutingModule routes ... along with the new OrdersComponent source files....
Read more >lazyload: Lazy Load a Database of R Objects - Rdrr.io
An optional function which when called on a a character vector of object names returns a logical vector: only objects for which this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes that’s correct. I’ll take the review label off of this.
Yeah, a lot of things are broken. My tools, my workflows, individual tool and workflow pages are varying levels of broken.