1

I am using MySQL and I would like to know if I make multiple select statements simultaneously in order to get information from the information schema, how are these queries handled? Could this cause some potential database malfunction?

12
  • How would you present them to the database simultaneously? Commented Aug 15, 2015 at 15:59
  • Possible duplicate of stackoverflow.com/questions/4629979/… Commented Aug 15, 2015 at 16:08
  • @mort: we may have multiple clients using the information schema. By simultaneously I mean, one client can run a select query and before this ends another one runs select. will this result in a mess? thank you for your time Commented Aug 15, 2015 at 16:14
  • @nha: I checked, and we are not asking the same thing, unfortunately Commented Aug 15, 2015 at 16:16
  • @Alex you mean different clients on different machines ? Commented Aug 15, 2015 at 16:25

1 Answer 1

0

Since your are using the myISAM storage engine and are worrying about concurrent SELECT statements:

READ (SELECT) can happen concurrently as long as there is no WRITE (INSERT, UPDATE, DELETE or ALTER TABLE). Ie. you can have either one writer or several readers.

Otherwise the operations are queued and executed as soon as possible. There is a special case : concurrent inserts.

Note : if you are wondering about the choice between the two main mySQL storage engines myISAM and InnoDB, InnoDB is usually a good choice, please read this SO question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.