Indexing large objects into ElasticSearch

110 views Asked by At

I am trying to index large objects - objects with lots of relations (about 100'000) - into ElasticSearch index, but the objects don't fit into memory. Sometimes Postgres limit is exceeded, sometimes PHP. And I cannot increase the limits any more.

Records are fetched one-by-one, on-demand. Page size has been minimized to 1.

Framework is Symfony3, bundle is FOSElasticaBundle.

Any bright ideas? Write indexed object into disk?

1

There are 1 answers

7
COil On

well it's a know problem, indexing with php / ORM is slow. You should have a look at the Java JDBC elasticsearch importer which is far more faster.