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.

Are partial results already possible with Houdini?

See original GitHub issue

Hi @AlecAivazis,

I just discovered this wonderful project. Endless congratulations.

I’m currently using Urql on all projects but as you may know Urql and Svelte don’t get along very well (no SSR, broken (Svelte) API and others).

I haven’t used Houdini yet (I’ll try in the next few hours), but one thing that keeps me from changing is the following and from a quick read it doesn’t seem to me that with Houdini you can get it today: I HOPE I AM WRONG.

This is what the world calls: Partial results which Urql obtains with Schema awareness.

This is one of the biggest points in favor of solutions like urql or apollo for me. And that’s one of the reasons I really enjoy working with Graphcache (normalized data) and schema awareness. Although it makes everything much heavier (in terms of development and runtime).

The UX show in the hands of the user is that the application looks native and almost offline (if the internet is fast enough). The loading spinners disappear completely and everything seems immediate.

Ultimately that’s why I chose to complicate my life by choosing to develop single page apps (SPAs) instead of multi-page (server rendered) apps (MPAs).

A very simple example is the list > detail. As soon as I enter the details I can show the data that I have already shown in the list and download in the background (almost without the person noticing, especially if I do it in the prefetch) the data that did not appear in the list.

I know that you understand what I mean and I also know that it is difficult to understand well how to organize this thing.

Is it already possible today with Houdini?

If you answer me yes, I could pass out with joy… 😄

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
AlecAivaziscommented, Mar 23, 2022

Yea, for now it’ll be all data but we can get smarter about that with time.

I’m not against having a CacheOnly policy for completeness. It’s one of those things that I probably wouldn’t use very often but it doesn’t hurt anything to have it.

0reactions
AlecAivaziscommented, Mar 24, 2022

@frederikhors, I just opened #240 which adds support for partial results by extending the cache policies as I described above. There is still some more testing to do but it should be ready relatively soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

curl - Houdini Gubbins - WordPress.com
If we compute the second order partial derivative, the result is a matrix called the Hessian matrix. The trace of this matrix is...
Read more >
Partition by Comparison TOP node - SideFX
This node creates a partition for each work item on the primary input. Any work items on the secondary input that successfully compare...
Read more >
Dirty tasks by comparison to last cook | Forums - SideFX
I got a draw curve based workflow where each curve will result in a computation heavy task worthy of bringing over to TOPs....
Read more >
Dynamics render node - SideFX
This is the safest way to render out a simulation, because it starts the simulation from scratch and discards any partial simulations you...
Read more >
Houdini Engine 5.0: Groups - SideFX
It is possible, for example, to have a single group contain some of the polygons from ... result = HAPI_GetDisplayGeoInfo( ... Get group...
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