question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change SourceFiles to be Fetch.Lazy

See original GitHub issue

Is 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 of FetchType.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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NatalieEOcommented, Jun 9, 2020

Yes that’s correct. I’ll take the review label off of this.

1reaction
NatalieEOcommented, May 7, 2020

Yeah, a lot of things are broken. My tools, my workflows, individual tool and workflow pages are varying levels of broken.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found