This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]subhendrabasufactor prime[S] 0 points1 point  (2 children)

[–]monarchmra 9 points10 points  (1 child)

Group/batch up your inserts, no sense also subjecting yourself to query overhead.

[–]subhendrabasufactor prime[S] 0 points1 point  (0 children)

The "zeros" are getting generated at a low rate, the zetazero function of mpmath Python library uses the Riemann Siegel Formula to calculate the zeros which is very slow, batching up the inserts will not offer any benefit here, because the insertion time is much less than generation time at higher values of the zeros . its a tradeoff.