Skip to content

How to fetch entities from a datasource in parallel using Java

Notifications You must be signed in to change notification settings

arman-yekkehkhani/parallel-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parallel-fetch

This project is a simple program to demonstrate how to fetch entities from a datasource in parallel. You can run test cases in class FetchTest(located in test directory) to see the final results. It is assumed the database contains 93 entities numbered from 0 to 92. This number can be changed by altering the private constructor in DataDAO. Page size and number of threads are considered to be 5 and 2, repsectively. You can find and change these values(PAGE_SIZE and THREAD_COUNTS) in class DataMgr.

About

How to fetch entities from a datasource in parallel using Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages