|
|
|
|
|
by crazygringo
972 days ago
|
|
That requires setting up an entirely different service and somehow keeping it in perfect sync with the database, and along with all of the memory it requires. And you've still got to decide how you're going to pick random ID's from an array of tens of millions of elements that are constantly having elements deleted from the middle. Once you've figured out how to do that efficiently, you might as well skip all the trouble and just use that algorithm on the database itself. |
|
How so? you have array of only valid IDs [1,2,3]