Nothing seems to happen when I click on that button.
I think there should at least be a window telling me "Optimizing database. Please wait".
This operation can be very quick with MySql databases hence no message shows up.
It's much slower on Compact and Sql Server databases.
Implemented in 14260