PM SQL tunning

We added the PM SQL tunning
Merge remote branch 'upstream/master' into pmsql
Merge pull request #1237 from brayanpereyra/pmsql

Pmsql we add DEL_LAST_INDEX