Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, you can and should use random file access to load things from a zip file. For example, Go's zip package takes an io.ReaderAt interface, not an io.Reader. Using sequential I/O for this would be inefficient.


The problem here is that you mostly have a streaming interface In s3.


I'm not familiar with s3, but it seems like if you want random access for a key-value database, you should store each file under a separate key? Storing an entire file archive as a blob (in any format) and downloading the whole thing just to access one file seems like a weird way to do it.

Apparently there is "s3 select" in preview [1], but it only supports gzipped CSV or JSON.

[1] https://aws.amazon.com/blogs/aws/s3-glacier-select/


S3 supports reading ranges of bytes. It might not always be a great idea for performance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: