简体   繁体   中英

Creating lucene index for oracle db - performance

After exchanging my pc with a pc of identical hardware I reinstalled all software. A spring-boot app uses hibernate-search to create a lucene index on startup. The database (schema, indices,...) and data itself are identical to the old setup. Everything works fine (the app etc.) except now the creation of the index takes a lot longer. Before 75 documents have been created per second but now only 7. I compared the database parameters and they are the same. To make sure there is no hardware problem I used a disk performance tool to compare the pc's (the new one is a little faster).

What could be the cause of that huge decrease in performance and how could I solve it?

Forgot to update this post. The reason was too many eager fetching sets. When creating the index all tables are then left outer joined. A huge query was the result. Now changed all to lazy fetching and it runs just fine .

:$

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM