Solved

Delay in reflecting the saved record

Posted on 2004-03-22
6
197 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

12 Experts available now in Live!

Get 1:1 Help Now