improving -R- aspect mysql