better performence about sql search