improve sql cmd performance due to "limit" sql cmd confuse the query planner