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

Integrate with IPFS file management to share large content #7

Open
a8underscore opened this issue Dec 28, 2021 · 3 comments
Open

Integrate with IPFS file management to share large content #7

a8underscore opened this issue Dec 28, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@a8underscore
Copy link

is there a solution to "Key: 'Article.Body' Error:Field validation for 'Body' failed on the 'max' tag"?

thank you

@mrusme
Copy link
Owner

mrusme commented Dec 28, 2021

Not right now, because I limited the the maximum post size, in order to avoid the database growing too fast too early.

There are a few considerations that need to be thought about before the database grows too big. At some point there probably has to be sharding in place, in order for people to still be able to use it without dealing with gigabytes of data.

Anyway, how big was the post you were trying to submit? Afair I limited it to ~512kb, which should be fair enough for text posts.

@a8underscore
Copy link
Author

I think it was a bit over 1GB

Maybe to help scaling, each "section" could be its own "file" (not sure how that works exactly, database?) that can optionally be downloaded?

@mrusme
Copy link
Owner

mrusme commented Dec 28, 2021

Oh, 1GB is certainly not going to work as an article. I see where you're coming from (the USENET, hehehe) but for this type of bin stuff we will need an integration with the IPFS file storage.

Ideally an article will only contain the hash to the file and make use of IPFS' file management capabilities to share/retrieve the file.

This is a rather complex topic (because integration needs to be really smooth, otherwise people will simply add a MEGA link to their article and call it a day) and more like something for the 0.1.0 or maybe even 1.0.0 version.

@mrusme mrusme changed the title Error with longer posts Integrate with IPFS file management to share large content Dec 28, 2021
@mrusme mrusme added the enhancement New feature or request label Dec 28, 2021
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