RavenDB-2948 High memory usage
Merge pull request #1602 from ppekrol/master

RavenDB-2948 High memory usage