Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flipside/Dune Integration #38

Open
davidgasquez opened this issue Jan 8, 2024 · 10 comments
Open

Flipside/Dune Integration #38

davidgasquez opened this issue Jan 8, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidgasquez
Copy link
Owner

We can push datasets to Flipside and Dune via Dagster assets.

@davidgasquez davidgasquez added the enhancement New feature or request label Jan 8, 2024
@davidgasquez davidgasquez self-assigned this Jan 8, 2024
@davidgasquez
Copy link
Owner Author

Dune has an upload limit of 1MiB...

We can upload probably some daily metrics but not much more.

@DistributedDoge, do you know how the Flipside external data works?

Seems their live query stuff would work for JSON data but I'm not sure if it can read Parquet files

@DistributedDoge
Copy link
Collaborator

DistributedDoge commented Jan 8, 2024

  1. From what I see in docs+UI Dune is telling me upload limit is 200MB per .CSV table. See here, no clue if it is accurate though.

  2. Last time I tried, Flipside could not read anything other than JSON, it will most certainly work with ipfs-hosted file though.

EDIT: For 2, to avoid making things messy we could e.g. push a subset of tables as json to different Filebase bucket.

@davidgasquez
Copy link
Owner Author

Dune is telling me upload limit is 200MB per .CSV table

I think that might be correct. The limit comes from the Free plan, which limits storage to 1MB.

image

For 2, to avoid making things messy we could e.g. push a subset of tables as json to different Filebase bucket.

That could work! We'll need to check how efficient those queries are though. Querying uncompressed JSON is not very efficient.

@DistributedDoge
Copy link
Collaborator

image

Confirmed empirically that Dune does not let me upload 25MB file, bait and switch at its finest.

@davidgasquez
Copy link
Owner Author

They're thinking about increasing it though.

I can poke them a bit more and check if that's a "future" plan or actual thing happening in the following weeks/months.

@davidgasquez
Copy link
Owner Author

@DistributedDoge
Copy link
Collaborator

I just learned we can in fact select assets using groups, compute kind or other properties.

This means we can probably construct assset job definitions in such a way, that say CI run would only trigger default assets while weekly fetch would trigger everything including actually updating Dune or Flipside.

from dagster import AssetSelection
AssetSelection.groups('group_label')

@davidgasquez
Copy link
Owner Author

Sounds like the perfect approach!

@davidgasquez
Copy link
Owner Author

For Flipside, a new option can be to push data to a spreadsheet and have Flipside read from it.

@davidgasquez
Copy link
Owner Author

Seems like Dune live fetch is now open to all free users!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants