Update of /cvsroot/monetdb/pathfinder/modules/pftijah/Tests
In directory 
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14567/modules/pftijah/Tests

Modified Files:
      Tag: M5XQ
        createcoll1.stable.out 
Log Message:
propagated changes of Wednesday Oct 14 2009
from the development trunk to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/10/14 - hrode: modules/pftijah/Tests/createcoll1.stable.out,1.8
  - introduce fragmented indexing on XQuery level
  - fixed bugs on MIL level function for fragemented indexing
  - adapted the test cases
  
  what still misses is the querying on the fragmented index,
  but the default for indexing is currently set to create only
  one single index, which allows querying to work as before
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: createcoll1.stable.out
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/modules/pftijah/Tests/createcoll1.stable.out,v
retrieving revision 1.7
retrieving revision 1.7.10.1
diff -u -d -r1.7 -r1.7.10.1
--- createcoll1.stable.out      7 May 2008 12:29:25 -0000       1.7
+++ createcoll1.stable.out      14 Oct 2009 12:07:03 -0000      1.7.10.1
@@ -16,40 +16,27 @@
 
 var path:=getenv("TSTSRCDIR");
 
-tj_init_collection("testcoll1", 
new(str,str).insert("stemmer","snowball-english"));
+# index collection at once
+tj_init_collection_base("testcoll1", 
new(str,str).insert("stemmer","snowball-english"));
 var docs := new(str,str);
 docs.insert(path+"/xml-docs/dilbert.xml","dilbert.xml");
 docs.insert(path+"/xml-docs/dilbert2.xml","dilbert2.xml");
 docs.insert(path+"/xml-docs/special.xml","special.xml");
-tj_add2collection("testcoll1",docs,true);
-# Elapsed time = 740us [012us/node]
-# Shredded 1 XML document (dilbert.xml), total time after commit=0.007s
-# Elapsed time = 599us [010us/node]
-# Shredded 1 XML document (dilbert2.xml), total time after commit=0.005s
-# Elapsed time = 546us [024us/node]
-# Shredded 1 XML document (special.xml), total time after commit=0.005s
+tj_add2collection_frag("testcoll1",docs,true);
+# Elapsed time = 379us [006us/node]
+# Shredded 1 XML document (dilbert2.xml), total time after commit=0.016s
+# Elapsed time = 311us [014us/node]
+# Shredded 1 XML document (special.xml), total time after commit=0.010s
 
 # index collection incrementally
-tj_init_collection("testcoll2", 
new(str,str).insert("stemmer","snowball-english"));
-tj_add2collection("testcoll2",path+"/xml-docs/dilbert.xml","dilbert.xml",true);
-tj_add2collection("testcoll2",path+"/xml-docs/dilbert2.xml","dilbert2.xml",true);
-tj_add2collection("testcoll2",path+"/xml-docs/special.xml","special.xml",true);
+tj_init_collection_base("testcoll2", 
new(str,str).insert("stemmer","snowball-english"));
+tj_add2collection_frag("testcoll2",path+"/xml-docs/dilbert.xml","dilbert.xml",true);
+tj_add2collection_frag("testcoll2",path+"/xml-docs/dilbert2.xml","dilbert2.xml",true);
+tj_add2collection_frag("testcoll2",path+"/xml-docs/special.xml","special.xml",true);
 
 # compare indexed collections
-var tids1 := bat(_tj_TermBat("testcoll1")).reverse().tsort();
-var tids2 := bat(_tj_TermBat("testcoll2")).reverse().tsort();
-var coll1 := indexfetchjoin(tids1, bat("tj_testcoll1_TermIndex"), 
bat("tj_testcoll1_Terms"));
-var coll2 := indexfetchjoin(tids2, bat("tj_testcoll2_TermIndex"), 
bat("tj_testcoll2_Terms"));
-diff(coll1,coll2).print();
-#-----------------#
-# h    t         # name
-# oid  oid       # type
-#-----------------#
-
-tids1 := bat(_tj_TagBat("testcoll1")).reverse().tsort();
-tids2 := bat(_tj_TagBat("testcoll2")).reverse().tsort();
-coll1 := indexfetchjoin(tids1, bat("tj_testcoll1_TagIndex"), 
bat("tj_testcoll1_Tags"));
-coll2 := indexfetchjoin(tids2, bat("tj_testcoll2_TagIndex"), 
bat("tj_testcoll2_Tags"));
+var coll1 := bat("tj_testcoll1_termfreq");
+var coll2 := bat("tj_testcoll2_termfreq");
 diff(coll1,coll2).print();
 #-----------------#
 # h    t         # name


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to