Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » How to deal with multiple inserts in ADD1 pattern
Re: How to deal with multiple inserts in ADD1 pattern [message #5885 is a reply to message #5884] Mon, 19 September 2016 15:07 Go to previous messageGo to previous message
kong is currently offline  kong
Messages: 90
Registered: December 2011
Member
My first post is about using the auto-increment, which will just produce multiple duplicated records with incremented primary key as expected.

In my second post I tried to avoid getting these duplicated records with just incremented primary keys by changing the table to use varchar(13) as primary key instead of auto-increment. The hope was that then only one record should be generated and subsequent inserts should have resulted in "duplicate error", just as you said. It is in my second post (using unique key ABC123) that I discovered the bug that shows the system does not always result in "duplicate error", but will sometimes throw a fatal error by MySQL crashing the application. I am using only standard transaction pattern components without any customization, and have not made any changes or customization in locking strategy between the components.

The content of this topic has digressed from the title. So, I have raised a new topic here: http:// radicore.org/fud/index.php?t=msg&goto=5886&#msg_5886

[Updated on: Tue, 20 September 2016 01:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: List sibling records given a child record
Next Topic: need help
Goto Forum:
  


Current Time: Sun May 19 12:22:20 EDT 2024

Total time taken to generate the page: 0.03358 seconds