java - How to access request from ui to database -
if database accept 20 requests @ same time, in ui, have 100 requests @ same time. how resolve in java?
your query should this:
select * table1 ... fetch first 100 rows only
or
you can use logic
- maxactive: maximum number of db connections in pool. set -1 no limit.
- maxidle: maximum number of idle db connections retain in pool. set -1 no limit.
- maxwait: maximum milliseconds wait db connection to
become available. set -1 wait indefinitely.
Comments
Post a Comment