proper design of the database, including defining appropriate indexes should stop that. unlike a traditional computer system you have absolutely no way of controlling what a user does or doesn't. so you need to beef up your data model to ensure bad data cannot enter the system AND imnprove your fron t end to reduce the possibility of a user inadvertantly breaking your system