Retrieve data parallely from a database

I am using the PostGRE SQL database for my project and i want to retrieve all the records parallely using CUDA programming to decrease the computation time.

I want each thread to retrieve each row of the database and then store the fetched data in an array.

What approach should i follow ?

Google for “GPU SQL” and then decide which database you want to switch to.

CUDA is no general-purpose magic that can make any program run faster.