fix #12 by adding estimate query length process at SetIdsToModels