improve the performance of index all for large dataset
Merge pull request #14 from warmwind/improve_index_all

improve the performance of index all for large dataset