en:site:recherche:logiciels:sparqlwithspark:watdivc3
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:site:recherche:logiciels:sparqlwithspark:watdivc3 [15/09/2016 09:30] – created hubert | en:site:recherche:logiciels:sparqlwithspark:watdivc3 [16/09/2016 23:09] (current) – [S2RDF+Hybrid plan] hubert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== WatDiv Query C3 ====== | + | {{indexmenu_n> | 
| + | |||
| + | ====== WatDiv Query C3 plans====== | ||
| + | |||
| + | ===== S2RDF plan ===== | ||
| + | |||
| + | <code scala> | ||
| + | val c3AllProp = List( | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + | |||
| + | //persist all C3 VPs | ||
| + | c3AllProp.map{case(ns, | ||
| + | |||
| + | |||
| + | // Order by increasing tp size | ||
| + | val order = c3AllProp.map{ case(ns,p) => (p, getIdP(ns, | ||
| + | order.foreach(println) | ||
| + | /* | ||
| + | (Location, | ||
| + | (age, | ||
| + | (gender, | ||
| + | (givenName, | ||
| + | (likes, | ||
| + | (friendOf, | ||
| + | |||
| + | */ | ||
| + | |||
| + | |||
| + | val VP2EXP=VP2Random | ||
| + | |||
| + | // join | ||
| + | val orderedList = List( | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + | |||
| + | val l1 = orderedList.map{case(ns, | ||
| + | val idP = getIdP(ns, p) | ||
| + |   VP2EXP(idP).withColumnRenamed(" | ||
| + | |||
| + | val c3= l1(0).join(l1(1)," | ||
| + | // | ||
| + | //42 845 342 | ||
| + | |||
| + | |||
| + | queryTimeDFIter(c3, | ||
| + | //time=13.8 s SHFR=1.7GB input=5.2GB  | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== S2RDF+Hybrid plan ==== | ||
| + | |||
| + | <code scala> | ||
| + | |||
| + | val c3AllProp = List( | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + | |||
| + | //persist all C3 VPs | ||
| + | c3AllProp.map{case(ns, | ||
| + | |||
| + | |||
| + | // sort by increasing tp size | ||
| + | val order = c3AllProp.map{ case(ns,p) => (p, getIdP(ns, | ||
| + | /* | ||
| + | order.foreach(println) | ||
| + | (Location, | ||
| + | (age, | ||
| + | (gender, | ||
| + | (givenName, | ||
| + | (likes, | ||
| + | (friendOf, | ||
| + | */ | ||
| + | |||
| + | // VP's are partitioned by SUBJECT | ||
| + | val VP2EXP=VP2 | ||
| + | |||
| + | // join | ||
| + | val orderedList = List( | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + |   (" | ||
| + | |||
| + | |||
| + | val l1 = orderedList.map{case(ns, | ||
| + | val idP = getIdP(ns, p) | ||
| + |   VP2EXP(idP).withColumnRenamed(" | ||
| + | |||
| + | val c3= l1(0).join(l1(1)," | ||
| + | // | ||
| + | //42 845 342 | ||
| + | |||
| + | queryTimeDFIter(c3, | ||
| + | // | ||
| + | </ | ||
| Go to [[en: | Go to [[en: | ||
en/site/recherche/logiciels/sparqlwithspark/watdivc3.1473924628.txt.gz · Last modified:  by hubert
                
                