Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Storing the samples #24

Open
neriberto opened this issue Mar 2, 2015 · 2 comments
Open

Storing the samples #24

neriberto opened this issue Mar 2, 2015 · 2 comments
Labels

Comments

@neriberto
Copy link

Hi,

I was thinking in save the samples in a separate directory, based in your sha256, similar to project VxCage (https://github.com/neriberto/vxcage/blob/master/utils.py#L33).

What do you think about it guys?

@jseidl jseidl added the question label Mar 8, 2015
@jseidl
Copy link
Contributor

jseidl commented Mar 8, 2015

The samples are flatly stored on the samples directory. I know this has issues with number of files and such and the beginning of the hash should be used as directory.

Thing is the whole sample storage will be refactored to support pluggable storages, like plugins, user may choose from different storage types / approaches.

This is still to be discussed. Any ideas are appreciated.

@turicas
Copy link
Contributor

turicas commented May 30, 2015

You may want to see Django File Storage API to extract some ideas to design this plugin system. ;-)
People use it to implement many kinds of storage for Django, such as uploading directly to AWS S3, MongoDB etc. You can look at how to write a custom storage system.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants