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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -