spotify / XCMetrics

XCMetrics is the easiest way to collect Xcode build metrics and improve developer productivity.
https://xcmetrics.io
Other
1.1k stars 77 forks source link

Split targets in chunks to insert them #31

Closed ecamacho closed 3 years ago

ecamacho commented 3 years ago

Fixes https://github.com/spotify/XCMetrics/issues/30

If we try to insert too many targets at once, we may reach the limit of parameters that NIO Postgres supports. This PR breaks them into chunks of 1000 targets. That strategy may be enough, since it worked to insert other lists like steps and notes