Solved

Delay in reflecting the saved record

Posted on 2004-03-22
6
198 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
6 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 50 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
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.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now