Skip to content
New issue

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

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

Already on GitHub? # to your account

Using sophia as append-only storage #148

Open
barrachri opened this issue Nov 16, 2017 · 5 comments
Open

Using sophia as append-only storage #148

barrachri opened this issue Nov 16, 2017 · 5 comments

Comments

@barrachri
Copy link

Hi, I'd like to try using sophia as append-only storage for a queue system.

Basically I want to save:

| id | topic | timestamp | message

does this use case fit with sophia?

@pmwkaa
Copy link
Owner

pmwkaa commented Nov 16, 2017

Hi. Sure, especially if your key will be monotonically increasing (like timestamp).

@barrachri
Copy link
Author

Thanks, would it better to use a single db file or one for each topic?

Keys will monotonically increase for each topic.

@pmwkaa
Copy link
Owner

pmwkaa commented Nov 16, 2017

I think one big database could be better in terms of resource utilization, but that depends on use case mostly and how keys are distributed.

@barrachri
Copy link
Author

I'll be happy to share the first implementation here, a feedback would be more then welcome :)

@pmwkaa
Copy link
Owner

pmwkaa commented Nov 16, 2017

Sure) i'll take a look

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants