<div>when the database is very large,   the functiion "commit()"  and "add_document()" Spend a very long time. how do i make it faster?</div>