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

Errors thrown when requesting database target size over 1TB #4

Open
hfxdklee opened this issue Mar 7, 2019 · 5 comments
Open

Errors thrown when requesting database target size over 1TB #4

hfxdklee opened this issue Mar 7, 2019 · 5 comments

Comments

@hfxdklee
Copy link

hfxdklee commented Mar 7, 2019

I'm attempting to create a database target of 1024GB and the creation process fails immediately when attempting to create the customer CSV files. I drop the size below a terabyte and it works as expected.

@toddmuirhead
Copy link
Contributor

What happens when it fails? Do you get any error message. What OS are you running on?

@hfxdklee
Copy link
Author

hfxdklee commented Mar 7, 2019 via email

@toddmuirhead
Copy link
Contributor

I was able to chase this down and the limit of 1024 GB is not arbitrary. There is a reason. The max value for an INT is 2,147,483,647. Ratios are used for determining the number of rows when creating a specified size DVDStore database. Specifically for the customers table - a 100GB database will have 200 million rows with each row representing a customer. When you specify a 1024GB size, this translates to 2.024 billion rows. The program that creates the customer row data is limited by the max integer value. To make it simple we stopped at 2.046 rows or max size of 1023GB, but I guess we could have gone up to 2.147 or a size of 1073GB.

Do you have a need to create a larger test database?

@hfxdklee
Copy link
Author

hfxdklee commented Mar 16, 2019 via email

@toddmuirhead
Copy link
Contributor

David - I have fixed this issue with the update that I just uploaded. It was essentially fixing the c program - ds3_create_cust.c so that it uses 'long long int' type instead of just 'int'. This one change results in having to change several other things in the program and also an update to InstallDVDStore.pl to allow for bigger numbers. I was only able to test at a slightly higher value - about 1.4 TB. I've limited the InstallDVDStore.pl script to accept up to 4096 GB.

Let me know how it goes.

Thanks - Todd

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