There is a configuration in fedora.fcfg that may be what you are looking for, 
though they warn against it because of a potential performance hit. Set the 
following to "true" and then restart the container.

    <param name="syncUpdates" value="false">
      <comment>(optional, default is false)
            Whether to flush the triple buffer before
            returning from object modification operations.
            Specifying this as true will ensure that RI queries
            immediately reflect the latest triples.
            Specifying false will not provide this guarantee,
            but can significantly reduce roundtrip time for
            API-M operations (depending on the triplestore
            implementation).</comment>
    </param>

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu
610-519-7361

________________________________
From: James, Eric [eric.ja...@yale.edu]
Sent: Wednesday, May 16, 2012 6:08 PM
To: fedora-commons-users@lists.sourceforge.net
Subject: [fcrepo-user] risearch not committing


Hi,



I'm running a ingest program.  Part of that program involves first ingesting a 
title object, then ingesting a volume object, where the volume object uses the 
pid of the title object in it's RELS-EXT isAConstituentOf relationship.  I'm 
finding the title pid using an risearch query looking for a specific label:



http://localhost:8080/fedora/risearch?type=tuples&lang=iTQL&format=TSV&distinct=on&query=select
 $object from <#ri> where $object <info:fedora/fedora-system:def/model#label> 
'Title Object - bibID:5697712'



If I run the program twice, ingesting the title in 1 batch and the volume in 
another, this works.  If I do this ri query in the browser after the program 
runs it works.  However if I try this in one run, ingesting the title, then 
running the query right after that ingest to get the title pid for the volume 
object, the query returns nothing.



It's as if the RI hasn't completed a transaction when trying in 1 run, so 
nothing is returned.  Is there a way to force the RI so this risearch works 
right after ingest of the title it is looking for?



I could save the title pid in a file or db or global variable rather than look 
it up in the risearch, but I'd like to understand what is preventing the search 
from working  (needs time to register? some kind of transaction?, etc.)



Thanks,

-Eric
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to