I want to store infinity number of java BigInteger
s in a storage from where I can fetch those data, do some operation, insert new data. The operation needs to be very fast. What will be the best choice of storage for this purpose?
The application will start with a prime number 2 and will check the primality of the numbers by some algorithm. If it founds a prime then it will insert that into that storage. Using the stored primes it will find next one. This application will never stops. If one stops the application then whenever next time it launches it will start from there where it was stopped. In this sense it is infinitesimal.
I think MySql, Oracle etc can't handle this kind of system. So is there any other data storage which can be used for this purposes?