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

Data and Index file size configuration #32

Open
choiyoung206 opened this issue Dec 19, 2017 · 1 comment
Open

Data and Index file size configuration #32

choiyoung206 opened this issue Dec 19, 2017 · 1 comment

Comments

@choiyoung206
Copy link

Hi,
I was was looking for a persistent queue for my projects, and I found bigqueue with great performance. I was testing with some test program and found following things :

  1. When I call removeAll method of queue, it deletes all the data files. But it doesn't remove the folders created for the queue. So Is there any way through which I can remove all the files and folders of the queue?

  2. A queue needs minimum 160MB memory for working which includes 32MB index file + 128MB data file. Now, In my use case I create a lot of queues and the data in those queues will rarely reach the size of 128MB, I don't want the queue to use this much disk size as in my case this is unnecessary. So Is there any way through which I can configure how much disk size it should use. Or the 128MB data file + 32MB index file is the default size in the queue
    Please respond.

Thanks

@jianyuanzh
Copy link

jianyuanzh commented Feb 29, 2020

You can refer to my changed version.

I added this feature in the following PR:
jianyuanzh#1

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

No branches or pull requests

2 participants