Choice of the optimal number of blocks for data access by an index