I have a large entity, with lots of OneToMany, ManyToOne, and ManyToMany child entities sets (each with almost a thousand child entities).
It’s a HUGE entity, with over 10 GB of database data. EVERYTHING must be indexed (so using includePaths is pointless).
When I try to index this entity, I eventually get out-of-memory errors, as it tries to lazy-load all the thousands of child entities. After about 60 minutes, even after allocating 50 GB of RAM, I still get OOM errors.
Is there some way I can work around this, to index this massive graph of data? Is there some setting where I can tell the Hibernate Search indexer to immediately index the data, as it lazy-loads it, and discard it, to free up memory for the next entities in the lazy-load batch?