aooohan commented on PR #596:
URL: https://github.com/apache/tomcat/pull/596#issuecomment-1463201626

   I have a question that why we don't add a real **primary 
key**(auto-increment) to solve the problem that primary key constraint 
violation when insert data to database simultaneously? And we can select 
session data from table by **session-id** and order (DSC) by **ID** (real 
primary key) when load session, then the newest result is what we need.  Thus, 
we can avoid adding lock(FOR UPDATE or others) from the database level by this 
way.
   I think this will work and so simple, but I don't know if there will be any 
security issues.
   
   Thoughts?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to