Github user wastl commented on a diff in the pull request:

    https://github.com/apache/marmotta/pull/15#discussion_r44345499
  
    --- Diff: 
libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java
 ---
    @@ -565,6 +565,8 @@ public Statement createStatement(Resource subject, URI 
predicate, Value object,
     
                 KiWiTriple result = new 
KiWiTriple(ksubject,kpredicate,kobject,kcontext);
     
    +            boolean needsDBLookup = false;
    +
                 synchronized (registry) {
    --- End diff --
    
    Rather than synchronized we could also use a Lock in the registry. This 
would avoid having to use a boolean flag to indicate if a DB lookup is needed 
(we could release the lock before reading from the DB).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to