Hi Miguel,

yes, but if I use enableLazyFieldLoading=trueand my queries only request 
for very small fields like ID, DocumentCache shouldn't grow, although my 
stored fields are very big. Am I wrong?

Best regards,


David Dávila Atienza
AEAT - Departamento de Informática Tributaria
Subdirección de Tecnologías de Análisis de la Información e Investigación 
del Fraude
Teléfono: 917681160
Extensión: 30160



De:     Miguel <miguel.valen...@juntadeandalucia.es>
Para:   solr-user@lucene.apache.org, 
Fecha:  18/03/2014 14:12
Asunto: Re: About enableLazyFieldLoading and memory



Hi David

    If you use lazy field loading (enableLazyFieldLoading=true) 
documentCache functionality is somehow limited. This means that the 
document stored in the documentCache will contain only those fields that 
were passed to the fl parameter. 

documentCache requires memory, the more memory, the more field you stored 
in the index, so if you have many stored field then documentCache requires 
much memory.

Best regards

El 18/03/2014 8:44, david.dav...@correo.aeat.es escribió:
Hello,

we have a Solr Cloud 4.7, but this question is also related with other 
versions, because we have tested this in several installations.


We have a very big index ( more than 400K docs)  with big documents, but 
in our queries we don't fetch the large fields in fl parameter. But, we 
have seen that memory grows when we look for big documents because of the 
Document Cache. This only happens in some queries we have to do, with 
maybe more than 1000 docs in the response. We have set 
enableLazyFieldLoading to true, so, we think that Document Cache should 
grow more or less the same with all documents because we only fetch ID 
field.

My question is: What does Solr exactly do when enableLazyFieldLoading is 
set to true? Why does the size of the document have an influence in the 
memory consumption?


Thanks in advance,

David Dávila Atienza
AEAT - Departamento de Informática Tributaria
Subdirección de Tecnologías de Análisis de la Información e Investigación 
del Fraude
Teléfono: 917681160
Extensión: 30160


Reply via email to