Question

In the interactive query form sometimes my users are making wrong joins and query generates huge amount of data after doing while. How can I prevent the user to use more than certain amount of memory?
I would like to limit the memory usage per query...

I am using mysql 5.5.8 myisam engine.
Thanks Arman.

Was it helpful?

Solution

No, MySQL has no per-user memory quota ability.

How much memory a single query can use is dictated by many variables you can configure. You can limit the size of join buffers, sort buffers, temporary tables, etc. These limits will be global for all queries.

OTHER TIPS

I don't think MyISAM let's you control this on a per thread basis.

You can always use

SHOW PROCESSLIST

and KILL any processes that have been running for certain length of time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top