Search DominoPower's 11,320 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
THIS WEEK'S POWERTIP
Forcing immediate indexes to actually update immediately
By Mick Moignard

I'm sure many of you have written applications that involve full-text indexes, and found that the index doesn't update for some time after your agent completes, even when the index frequency is set to 'Immediate'. The Admin help suggests that such indexes are updated as soon as possible after the database is closed, but in fact, "as soon as possible" is not less than 15 minutes.

The request goes on a queue, and waits, so if the database is quite active, the index is updated every so often rather than after every change -- reducing server loadings, but potentially increasing user irritation. In fact for some applications the can be quite a nuisance -- especially, as in my case, you have a team of testers eagerly trying to break the application and being frustrated at the indexer delays. In the end they raised a trouble ticket and we had to respond It's worth noting that the server behaviour differs from client behaviour -- the client updates "Immediate" FTI's directly as the database is closed.

We initially worked around the problem by using a program document to run Updall every couple of minutes, using the -F parameter, to update the index every couple of minutes. That actually worked fine, and for many applications is probably all you need to do, unless your Admins object to your request for the program schedule.

A better solution, entirely within your control, is to request the update directly in the application code, as the agent completes. In LotusScript or Java, it's just one line of code: call NotesDatabase.UpdateFTindex(False), and in our tests, the index was updated in seconds.

One warning: don't attempt to use the True parameter to create a full-text index on a server database. You get an error, as documented in the help.

Mick Moignard has been working and traveling with Lotus Notes since Release 2.0 in 1991. Mick is a DominoPower Senior Technical Editor and a Principal CLP with Unipart Expert Practices, a Lotus Advanced Partner in the UK. If you want to discuss anything to do with this article, or indeed anything else to do with Notes and Domino, contact Mick at Mick_Moignard@unipart.co.uk. Unipart Expert Practices will also happily discuss any opportunities you may have with any Notes and Domino application development or infrastructure projects you need help with. Unipart Expert Practices can be found at http://www.unipartep.com.


Other articles you might like
Home > Lotus Technologies > Access Control (7 articles)
   Enabling and disabling the single login setting in Notes 6
   Coding Domino server tasks in C: beyond Windows
   Coding Domino server tasks in C: the adventure continues
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
Enabling DAOS on a database - new recommendation
Need your opinion on some new policy settings for Mail
Sometimes IBM Lotus Domino HTTP RPC Agents aren't the answer...
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Teamstudio announces the 2010 spotlight awards winners!
We had some extraordinary submissions for the 3rd annual Teamstudio Spotlight Awards, and choosing the winners was no easy task for our judges! Click here to find out who won, and to learn more about these remarkable applications and the genius developers behind them!

Tap here for more information.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login