?
Solved

Delay in reflecting the saved record

Posted on 2004-03-22
6
Medium Priority
?
204 Views
Last Modified: 2013-12-18
hey
i'm using java with domino.
my prob is after saving the record it takes time to reflect the changes done . I save a  record successfully. when i search for the same record immediately it retrieves no records  its only after 10-15 mins would it show me the saved record ...

wondering why ???

if someone can help ....

cheers
rakkoona
0
Comment
Question by:rakkoona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 150 total points
ID: 10648482
Hi rakkoona,

If you use full-text search, there is always a substantial delay. If you search in a view, using view.GetAllDocumentsByKey, it should be instantaneous, if not use view.Refresh

Cheers!
   Sjef
0
 

Author Comment

by:rakkoona
ID: 10648526
hey Sjef

i'm using Document class, i'm not using view or ftsearch anywhere, though i would like to use ftsearch at a later stage
current ly i'm using db.search(field='value')

and for saving the record
document.save(true)


cheers
rakkoona

0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10648619
rakkoona,

DbSearch is usually slow, most certainly in a large db. Better use the alternative: make a view, sorted on the field you are searching for, and call GetAllDocumentsByKey with the key value as parameter. Search index refresh indeed has a considerable delay.

Sjef
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10648833
It is basically the view index is out of sync.. after creating the doc update the view with this method

Call notesView.Refresh

And then search the database

~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10649110
DbSearch is not dependant on views, so something else is going on here.  However, Sjef's suggestion is correct, especially in combination with Hemantha's.  Build a view that sorts on they key you are using to retrieve, then use Database.getView(view_name) followed by a refresh of that view followed by a getdocumentbykey of that view.  You can have a complex key, if you like.
0
 

Author Comment

by:rakkoona
ID: 10702564
thanks Sjef ,

it worked correctly ...

and thank u for all the other champs
who participated...

cheers
rakkoona


0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question