check if there features in meory and then flush ijdex into disk