dynamoid
https://github.com/veraticus/dynamoid
Ruby ORM for Amazon's DynamoDB
Gitlab::Database::MultiThreadedMigration#with_multiple_threads
Starts a thread-pool for N threads, along with N threads each using a
single connection. The provided block is yielded from inside each
thread.
Example:
with_multiple_threads(4) do
execute('SELECT ...')
end
thread_count - The number of threads to start.
join - When set to true this method will join the threads, blocking the
caller until all threads have finished running.
Returns an Array containing the started threads.Edit
git clone [email protected]:veraticus/dynamoid.git
cd dynamoid
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Database--MultiThreadedMigration-with_multiple_threads-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Database::MultiThreadedMigration#with_multiple_threads"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Database--MultiThreadedMigration-with_multiple_threads-for-pr
hub pull-request
# Celebrate!