Can you please let me know why Marklogic times out in mentioned Scenario2 
whereas it quickly performs Scenario1?

Scenario1:

1)      Create a new database.

2)      Insert 20000 documents in this database through QConsole using the 
following code.
for $i in (1 to 20000)
let $uri := fn:concat("/xml", $i, ".xml")
let $document := element{fn:concat("cpf_", $i)} {$i}
return
xdmp:document-insert($uri, $document, xdmp:default-permissions(), "collections")

3)      It takes time 4-9 seconds on ML 7.0-4.1 for DUAl CORE Processor with 1 
forest attached only.

Scenario2:

1)      Install Cpf over this database and don't mention any action on initial 
state. Rather give some action on any user-defined state.

2)      Run the same code again.

3)      All the documents inserted will go to initial state without any 
invoking of any action.

4)      My understanding says installing cpf without any action being performed 
on initial state should give us same performance as Scenario 1 which is not the 
case.

5)      It is very long time taking query which even times out. Tested with 
12000 and it takes 19 minutes.


Thanks,
Rahul Gupta

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to