the corner office

a blog, by Colin Pretorius

« An auspicious day | Main | Naughty Ed »

# Identifying conflicts

A thinkoutloud: ViewEntries (and Documents) have an isConflict() property. Does the document itself have to be read for this to be checked, or is it a property that the parent view (index) knows about?

The reason I'm wondering? Using ColumnValues (which I've always understood to rely on the View's index) reportedly gives up to a 40% saving as opposed to hitting the document itself. If you're running through entries in a ViewNavigator, and you need to check for replication conflicts, and isConflict() loads the document anyway, you're incurring an unpleasant overhead...

File under: notes/domino : {2004.03.09 16:28}

Comments:

1. jonvon (2004.03.09 - 16:15) #

of course, you could add something like

@IsUnavailable($Conflict)

to your select statement if you want to avoid conflicts.

btw, i've been meaning to go back and find something on your blog where you were talking about ViewNavigators and memory leaks in Java. wasn't that you? was it that you needed to specifically recycle the doc? i was wondering if this applied if you were just hitting columnvalues and never accessing the docs.

2. Ben Poole (2004.03.09 - 17:02) #

Oooh, that's interesting. On the one hand I want to say that IsConflict is an artefact of a view index, in that a replication / save conflcit is *always* presented the same way in a view (i.e. as a response, with the standard "Replication conflict" text taking precedence over all column formulae), but then I assume that this is in turn driven by the $Conflict field(s) in a document.<br><br>Hmmmm...<br><br>jonvon, this may be what you're looking for:<br><br><a href="http://www.e-md.co.za/web/colin.nsf/plink/040121-0224">http://www.e-md.co.za/web/colin.nsf/plink/040121-0224</a>

3. Colin (2004.03.09 - 17:58) #

Hehe... the reason I'm pondering this is that I had overlooked the isConflict() function and was doing a hasItem() check on the document itself (long story). I had a doh! moment when I saw isConflict() in the Designer Help and decided to scrap my own li'l routine, and then I stopped and wondered whether isConflict wasn't doing in the background what I was doing in the foreground :)

Jon - on the memory leak issue, I'm actually not sure whether the document needs to be recycled if fields aren't read - good point - I'll test and see what shakes.

(Ben - if the first post didn't show immediately, it might be a lazy view reindexing problem that crops up intermittently on my server. I've retired one of your posts; sorry 'bout that :)

4. jonvon (2004.03.10 - 16:15) #

oh good, thanks (in advance) for looking into that colin! i've had a nagging worry in the back of my mind ever since you posted that!

thanks for the link too ben, i even posted another comment on that thread.

:-)

Add a comment

Your name (mandatory):

Your email:
Your email address is not displayed
Your home page:

Comment (sorry, no HTML):

Remember details?
Yes No

meta

-home-
about
contact
disclaimer
articles
code
link blog

style: [?]
[plain.dark.blue]

Categories

java
linux
music
notes/domino
personal
politiek
studies
techie
thee_blog
world

RSS Feeds

rssfeed all posts
rssfeed all cmts
rssfeed tech posts
rssfeed tech cmts

Archives

2008.11
2008.10
2008.09
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07
2007.06
2007.05
2007.04
2007.03
2007.02
2007.01
2006.12
2006.11
2006.10
2006.09
2006.08
2006.07
2006.06
2006.05
2006.04
2006.03
2006.02
2006.01
2005.12
2005.11
2005.10
2005.09
2005.08
2005.07
2005.06
2005.05
2005.04
2005.03
2005.02
2005.01
2004.12
2004.11
2004.10
2004.09
2004.08
2004.07
2004.06
2004.05
2004.04
2004.03
2004.02
2004.01
2003.12
2003.11
2003.10
2003.09
2003.08
2003.07
2003.06

© Colin Pretorius