How do i keep my DB and lucene in sync?
Posted
by acidzombie24
on Stack Overflow
See other posts from Stack Overflow
or by acidzombie24
Published on 2010-04-11T16:13:02Z
Indexed on
2010/04/12
5:13 UTC
Read the original article
Hit count: 313
So i can have a transaction in sql. But i am sure its not a good idea to wait in the middle of a transaction for lucene to finish also i am unsure if lucene is permanently saved in the DB until i do something there.
Whats the best way to keep my DB and lucene in sync? I am thinking of adding a lucene_queue in my sql db and everytime i make a change i add it into the queue (removing older queue if any) and delete it once it is done.
Is this the best way? Also i am unsure how to make lucene permanently keep the changes i made and how frequent i can/should do it.
© Stack Overflow or respective owner