java - Keeping search result consistent across multiple transactions -
i have implement requirement java crud application users want keep search results intact if actions affects criteria returned rows matched.
confused? ok. let me give familiar example. in gmail if advanced search on unread emails, presented list of matching results. click on entry , go search list. happens have read entry hasn't disappeard original result set. line has changed bold normal.
i need implement exact same behaviour application designed in such way transaction persisted first , ui requeries db keep in sync. complexity of application , size of database prevents me doing simple in memory caching of matching rows , making changes both in db , in memory.
i'm thinking of solving problem on database level creating intermediate table in oracle database holding pointers matching records , requerying records keep ui in sync data. ideas?
in oracle, if open cursor, results of cursor static, regardless if transaction inserts row appear in cursor, or updates or deletes row exist in cursor.
the challenge not close cursor if want results consistent when cursor opened.
Comments
Post a Comment