java - sql store procedure being called by multiple processes -


using: mysql server.

i'm in situation need check if customerid exists before registering user in batch application.

the problem different thread/process of same batch application can trying check if same user registered or not, , try create if not exist.

after reading understand store procedure (createcustomer) select check if customerid not exists , calls insert register customer right way. if 10 batch processes try calling createcustomer store procedure same customerid @ same time ? happen in case ? possible same user created 10 times here ?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -