Improving Query Performance

I've found that the more documents you are asking for, the more ES memory you will need (we do query with size: 1.000.000)