I am using tomcat connection pool through JNDI resources.
In context.xml :
<Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource" username="myusr" password="mypwd" driverClassName="com.mysql.jdbc.Driver" maxActive="1000" maxIdle="100" maxWait="10000" url="jdbc:mysql://localhost:3306/mydatabase" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" />
In web.xml :
<resource-ref> <description>DB Connection</description> <res-ref-name>jdbc/mydb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
The database is MySQL.
When I select some data, such as a product list, the same list is also displayed after inserting or deleting a product.
How to prevent this? In this case, I would see an updated list.
EDIT
query_cache_size is 0, and query_cache_type is ON.
So where could the problem be? Why is query caching?
EDIT
I read about "RESET QUERY CACHE" and "FLUSH TABLES".
What is the difference between the two?
Using one of them, can there be problems in the auction / e-commerce scenario?
mysql caching tomcat connection-pooling
Sefran2
source share