.
authorKim Nguyễn <kn@lri.fr>
Thu, 9 Apr 2015 11:45:52 +0000 (13:45 +0200)
committerKim Nguyễn <kn@lri.fr>
Thu, 9 Apr 2015 11:45:52 +0000 (13:45 +0200)
bd/bd04.xhtml
bd/bd05.xhtml
bd/example_plan.svg
bd/pdf/bd04.pdf
bd/pdf/bd04_print.pdf
bd/pdf/bd05.pdf
bd/pdf/bd05_print.pdf

index c3a55b9..29656b9 100644 (file)
@@ -49,7 +49,8 @@
       <h3>Apprentis 4<sup>ème</sup> année</h3>
       <h1>Cours 4 : Optimisation des opérateurs</h1>
       <a href="mailto:kn@lri.fr">kn@lri.fr</a><br/>
-      <a href="http://www.lri.fr/~kn/">http://www.lri.fr/~kn</a>
+      <a href="http://www.lri.fr/~kn/">http://www.lri.fr/~kn</a><br/>
+      <a>version mise à jour le 09/04/2015</a>
     </div>
 
     <h1>Motivation</h1>
@@ -93,8 +94,8 @@
        L'AR nous dit que <tt>R &join; S = &sigma;<sub>=</sub>(R x
       T)</tt>, mais c'est <s>très inefficace</s>, on veut optimiser ce cas!
       </p>
-      <p>On suppose dans la suite M enregistrements dans R,
-       P<sub>R</sub> enregistrements/page, N enregistrement dans S,
+      <p>On suppose dans la suite M pages dans R,
+       P<sub>R</sub> enregistrements/page, N pages dans S,
        P<sub>S</sub> enregistrements/page.
       </p>
       <p>On pose pour les exemples: M=1000, N=500, P<sub>R</sub>=120, P<sub>S</sub>=100</p>
index 5c5c6f0..9ff0195 100644 (file)
       annotés avec un algorithme particulier.
       </p>
       <ul>
-       <li>Pour une requête donnée, quels plans doit-on considérer
+       <li>Pour une requête donnée, quels plans doit on considérer
        ?</li>
        <li>Comment peut on estimer le coût total d'un plan</li>
       </ul>
 </code>
 <p><img class="sws-pause" src="simple_plan.svg" width="50%"/></p>
 <ul>
-  <li class="sws-pause">Cout: 500+500*1000 E/S (pourquoi ?)</li>
+  <li class="sws-pause">Coût: 500+500*1000 E/S (pourquoi ?)</li>
   <li> Plusieurs occasions manquées : pas d'utilisation d'index, on
-  aurait pu pousser la selection sous la jointure, …</li>
+  aurait pu pousser la sélection sous la jointure, …</li>
   <li> Notre but est de trouver des plans d'exécution plus efficaces
   qui calculent le même résultat</li>
 </ul>
       <h1>Plan alternatif 1 (sans index)</h1>
 <p><img class="sws-pause" src="simple_plan1.svg" width="50%"/></p>
 <p class="sws-pause">On pousse la sélection sous la jointure (car
-  selection <tt>AND</tt>). On suppose qu'on a 100
+  sélection <tt>AND</tt>). On suppose qu'on a 100
   bateaux, 10 notes et distributions uniformes. </p>
 <ul>
-  <li>Scan Reserves (1000 E/S) et écriture de 10 pages dans T1</li>
-  <li>Scan Sailors (500 E/S) et écriture de 250 pages dans T2</li>
+  <li>Scan <tt>Reserves</tt> (1000 E/S) et écriture de 10 pages dans T1</li>
+  <li>Scan <tt>Sailors</tt> (500 E/S) et écriture de 250 pages dans T2</li>
   <li>Tri T1 (3*10 E/S), Tri T2 (8*250 E/S), fusion (10+250 E/S)</li>
   <li>Total: <em>4050 E/S</em></li>
-  <li>Si on pousse la projection, T1 ne contient que sid, T2
-    uniquement sid et sname (cout <tt>&lt;</tt> 2000 E/S)</li>
+  <li>Si on pousse la projection, T1 ne contient que <tt>sid</tt>, T2
+    uniquement <tt>sid</tt> et <tt>sname</tt> (cout <tt>&lt;</tt> 2000 E/S)</li>
 </ul>
     </div>
     <div class="sws-slide">
@@ -260,13 +260,13 @@ Exemples de facteurs de réduction:
   <h1>Autres équivalences</h1>
   <ul>
     <li>
-Une projection commute avec une selection qui utilise uniquement
+Une projection commute avec une sélection qui utilise uniquement
   les attributs de la projection</li>
-    <li>Une selection entre des attributs de deux arguments d'un
+    <li>Une sélection entre des attributs de deux arguments d'un
     produit cartésien peut être converti en jointure:
       <tt> &sigma;<sub>&phi;</sub> (R &times; S) ≡ R &join;<sub>&phi;</sub> S</tt>
       </li>
-    <li>Une selection sur des attributs de <tt>R</tt> commute avec la
+    <li>Une sélection sur des attributs de <tt>R</tt> commute avec la
     jointure <tt>R&join;S</tt> (c'est à dire:  <tt>&sigma;(R&join;S) ≡  &sigma;(R)&join;S </tt>)
       </li>
     <li>Règle similaire pour pousser les projections sous jointure</li>
@@ -279,18 +279,18 @@ Une projection commute avec une selection qui utilise uniquement
   Les SGBD modernes utilisent un modèle de
   calcul <em><i>pull</i></em>. L'opérateur le plus «&nbsp;haut&nbsp;» (racine)
   dans l'arbre de requête «&nbsp;tire&nbsp;» (<i>pull</i>) le résultat de ses
-  sous-arbres (similaire à l'appel de <i>next</i> sur les iterateurs
+  sous-arbres (similaire à l'appel de <i>next</i> sur les itérateurs
   de la bibliothèque standard Java). Cela permet
   de <em><i>pipeliner</i></em> les opérateurs. Certains opérateurs «
   <em>bloquent</em> » le <i>pipeline</i> (en particulier les tris et
-  aggrégats).
+  agrégats).
 </p>
 
 </div>
 <div class="sws-slide">
 <h1>Cas mono-relation</h1>
 <p>Dans le cas mono-relation (i.e. sans jointure), la requête est
-  composée forcément de selections, projections et aggrégats
+  composée forcément de sélections, projections et agrégats
   (<tt>max</tt>, <tt>count</tt>, <tt>average</tt>, …)</p>
 <ol>
   <li>Pour chaque sous-terme, on considère tous les accès possibles
@@ -304,15 +304,15 @@ Une projection commute avec une selection qui utilise uniquement
 <div class="sws-slide">
 <h1>Estimation du coût pour les plans mono-relation</h1>
 <ul>
-<li> Si on a un index I pour une selection sur clé primaire :
+<li> Si on a un index I pour une sélection sur clé primaire :
   <tt><s>Hauteur(I) + 1</s></tt> pour un arbre B+, <tt><s>1.2</s></tt>
   pour un hash-index</li>
 <li> Si on a un index I groupant pour plusieurs
-  selection <tt>&sigma;<sub>1</sub></tt>, …, <tt>&sigma;<sub>n</sub></tt> :<br/>
+  sélection <tt>&sigma;<sub>1</sub></tt>, …, <tt>&sigma;<sub>n</sub></tt> :<br/>
   <tt><s>(NPages(I) + NPages(R))* RF(&sigma;<sub>1</sub>) * … * RF(&sigma;<sub>n</sub>) </s></tt>
 </li>
 <li> Si on a un index I non-groupant pour plusieurs
-  selection <tt>&sigma;<sub>1</sub></tt>, …, <tt>&sigma;<sub>n</sub></tt> :<br/>
+  sélection <tt>&sigma;<sub>1</sub></tt>, …, <tt>&sigma;<sub>n</sub></tt> :<br/>
   <tt><s>(NPages(I) + <u>NEnr</u>(R))* RF(&sigma;<sub>1</sub>) * … * RF(&sigma;<sub>n</sub>) </s></tt>
 </li>
 <li>Scan séquentiel à <tt>R</tt>: <tt><s>NPages(R)</s></tt></li>
@@ -343,7 +343,7 @@ Une projection commute avec une selection qui utilise uniquement
   <h1>Requêtes multi-relations</h1>
 <ul><li>Les choix vont être guidé par les <em>jointures</em></li>
   <li>Si on considère uniquement <tt>n</tt> jointures (pas de projections ni
-  de selections dans le plan de requête). Le nombre de plans possible
+  de sélections dans le plan de requête). Le nombre de plans possible
   est le nombre d'arbre binaires ayant <tt>n</tt> noeuds internes
   (exponentiel en <tt>n</tt>, exactement: nombre de Catalan
   d'indice <tt>n</tt>). <s>Beaucoup trop pour les énumérer tous</s>.
@@ -390,7 +390,7 @@ Une projection commute avec une selection qui utilise uniquement
     peuvent êtres faites en <em><i>pipeline</i> (ou <i>streaming</i></em> sans
     itération/matérialisation des résultats intermédiaires
   </li>
-  <li>Celà peut valoir le coup d'utiliser un <i>merge-sort</i> join
+  <li>Cela peut valoir le coup d'utiliser un <i>merge-sort</i> join
     (possiblement coûteux) si on demande les résultats dans un <em>certain
     ordre</em> (<tt>ORDER BY</tt> compatible avec celui de la jointure). Cela évite de faire
     une jointure suivie d'un tri.
@@ -452,7 +452,7 @@ uniformément réparties. Tous les sid et tous les bid sont présents
             float:left;'>
  </span>
 
-On choisi de faire d'abord une jointure entre R et S (i.e. un produit
+On choisi de faire d'abord une jointure entre B et S (i.e. un produit
 cartésien car il n'y a pas de condition de jointure entre ces deux
 tables). Puis la jointure de la table résultante avec B sur les
 attributs (bid,sid).
@@ -461,13 +461,13 @@ attributs (bid,sid).
   directement sur S, puis la jointure <tt>B &join;
   (&sigma;(S))</tt></em>. Pas d'utilisation d'index possible, jointure page
   à page (car on génère tout le produit cartésien) : <tt>100 ×
-  (100 + 200) = 300 000</tt> E/S (pages) ou 192 000 000 enr.
+  (100 + 200) = 30 000</tt> E/S (pages) ou 19 200 000 enr.
 </p>
 <p>Puis jointure <em>itérative page à page</em> avec R (<em>pas d'index sur R</em>, pas d'index
-  sur le résultat précédant qu'on vient de créer en mémoire):
-  <tt>1 000 × (300 000 + 1000) = 301 000 000 E/S.</tt>
+  sur le résultat précédent qu'on vient de créer en mémoire):
+  <tt>1 000 × (30 000 + 1000) = 31 000 000 E/S.</tt>
 </p>
-<p>Coût total: <tt>301 300 000 E/S</tt> (les projections sont faites
+<p>Coût total: <tt>31 300 000 E/S</tt> (les projections sont faites
   en pipline à la fin)</p>
 <p style="background:white">Plan complètement inefficace. On ignorera les plans contenant un
   produit cartésien, sauf si c'est le seul moyen de calculer la
@@ -502,10 +502,10 @@ sur <tt>sid</tt>.</p>
 <p>La deuxième jointure peut être faite à la volée (jointure itérative
   par index sur <tt>S.sid</tt>) et la condition de sélection testée à
   la volée. Coût total 100 000 × 3 (pour chacun des enregistrement
-  précédants, on paye un accès d'index + un accès à la ligne
+  précédents, on paye un accès d'index + un accès à la ligne
   correspondante dans S).
 </p>
-<p>Coût total: <tt>601 000 E/S</tt> (les projections sont faites en pipline à la fin)</p>
+<p>Coût total: <tt>601 000 E/S</tt> (les projections sont faites en <i>pipline</i> à la fin)</p>
 </div>
 
 <div class="sws-slide">
@@ -539,7 +539,7 @@ sur <tt>sid</tt>.</p>
 <p> On fait une jointure page à page des deux résultats
  précédents : <tt>100 + 100 × 1515 = 100 615 E/S</tt>.
 </p>
-<p>Coût total: <tt>102 630 E/S</tt> (les projections sont faites en pipline à la fin)</p>
+<p>Coût total: <tt>102 630 E/S</tt> (les projections sont faites en <i>pipline</i> à la fin)</p>
 </div>
 
 
@@ -582,7 +582,7 @@ sur <tt>bid</tt>.</p>
 
 <ul>
   <li>Utiliser l'index n'est pas toujours payant, surtout s'il est
-    non-groupant et qu'il car on ajoute un facteur qui est le nombre de
+    non-groupant, car on ajoute un facteur qui est le nombre de
     résultats, pas le nombre de pages</li>
   <li>On a fait certaines approximations « à la louche » (taille des
     enregistrements résultants d'une jointure, nombre des
index 3c3812f..677ff8f 100644 (file)
@@ -9,11 +9,11 @@
    xmlns="http://www.w3.org/2000/svg"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="568.40125"
-   height="122.59209"
+   width="572.80127"
+   height="126.99208"
    id="svg2"
    version="1.1"
-   inkscape:version="0.48.5 r10040"
+   inkscape:version="0.48.4 r9939"
    sodipodi:docname="example_plan.svg">
   <defs
      id="defs4" />
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="1.3734375"
-     inkscape:cx="375.34095"
-     inkscape:cy="69.837239"
+     inkscape:cx="377.54095"
+     inkscape:cy="72.037241"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="true"
-     fit-margin-top="0.3"
-     fit-margin-left="0.3"
-     fit-margin-right="0.3"
-     fit-margin-bottom="0.3"
-     inkscape:window-width="1317"
-     inkscape:window-height="744"
-     inkscape:window-x="49"
-     inkscape:window-y="24"
-     inkscape:window-maximized="1">
+     fit-margin-top="2"
+     fit-margin-left="2"
+     fit-margin-right="2"
+     fit-margin-bottom="2"
+     inkscape:window-width="1631"
+     inkscape:window-height="1026"
+     inkscape:window-x="1249"
+     inkscape:window-y="407"
+     inkscape:window-maximized="1"
+     units="pt">
     <inkscape:grid
        type="xygrid"
        id="grid2985"
@@ -46,8 +47,8 @@
        visible="true"
        enabled="true"
        snapvisiblegridlinesonly="true"
-       originx="119.10664px"
-       originy="-809.51591px" />
+       originx="121.30664px"
+       originy="-807.31591px" />
   </sodipodi:namedview>
   <metadata
      id="metadata7">
@@ -65,9 +66,9 @@
      inkscape:label="Layer 1"
      inkscape:groupmode="layer"
      id="layer1"
-     transform="translate(119.10664,-120.25418)">
+     transform="translate(121.30664,-118.05418)">
     <g
-       id="g3147">
+       id="g3116">
       <text
          sodipodi:linespacing="125%"
          id="text2987"
            x="140"
            id="tspan3314"
            sodipodi:role="line">Plan 2</tspan></text>
-      <g
-         transform="translate(0,-3.4545898e-6)"
-         id="g3129">
-        <text
-           xml:space="preserve"
-           style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-           x="340"
+      <text
+         sodipodi:linespacing="125%"
+         id="text2987-3"
+         y="182.36218"
+         x="340"
+         style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
            y="182.36218"
-           id="text2987-3"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2989-3"
-             x="340"
-             y="182.36218">⨝</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="300"
+           x="340"
+           id="tspan2989-3"
+           sodipodi:role="line">⨝</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2991-3"
+         y="222.36218"
+         x="300"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
            y="222.36218"
-           id="text2991-3"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2993-0"
-             x="300"
-             y="222.36218">R</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="390"
+           x="300"
+           id="tspan2993-0"
+           sodipodi:role="line">R</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2995-5"
+         y="222.36218"
+         x="390"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
            y="222.36218"
-           id="text2995-5"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2997-0"
-             x="390"
-             y="222.36218">S</tspan></text>
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 310,212.36219 30.00001,-20"
-           id="path2999-3"
-           inkscape:connector-curvature="0" />
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 360.00001,192.36219 30,20"
-           id="path3001-8"
-           inkscape:connector-curvature="0" />
-        <text
-           xml:space="preserve"
-           style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
            x="390"
+           id="tspan2997-0"
+           sodipodi:role="line">S</tspan></text>
+      <path
+         inkscape:connector-curvature="0"
+         id="path2999-3"
+         d="m 310,212.36219 30.00001,-20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3001-8"
+         d="m 360.00001,192.36219 30,20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <text
+         sodipodi:linespacing="125%"
+         id="text2987-8-8"
+         y="132.36218"
+         x="390"
+         style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
            y="132.36218"
-           id="text2987-8-8"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2989-7-6"
-             x="390"
-             y="132.36218">⨝</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="440"
+           x="390"
+           id="tspan2989-7-6"
+           sodipodi:role="line">⨝</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2995-8-8"
+         y="172.36218"
+         x="440"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
            y="172.36218"
-           id="text2995-8-8"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2997-6-3"
-             x="440"
-             y="172.36218">B</tspan></text>
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 360.00001,162.36219 30,-20"
-           id="path2999-4-4"
-           inkscape:connector-curvature="0" />
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 410.00001,142.36219 30,20"
-           id="path3001-5-4"
-           inkscape:connector-curvature="0" />
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-           x="340"
+           x="440"
+           id="tspan2997-6-3"
+           sodipodi:role="line">B</tspan></text>
+      <path
+         inkscape:connector-curvature="0"
+         id="path2999-4-4"
+         d="m 360.00001,162.36219 30,-20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3001-5-4"
+         d="m 410.00001,142.36219 30,20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <text
+         sodipodi:linespacing="125%"
+         id="text3312-6"
+         y="242.36218"
+         x="340"
+         style="font-size:13px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
            y="242.36218"
-           id="text3312-6"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan3314-8"
-             x="340"
-             y="242.36218">Plan 3</tspan></text>
-      </g>
-      <g
-         transform="translate(-70,-40.000003)"
-         id="g3111">
-        <text
-           xml:space="preserve"
-           style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-           x="-10"
+           x="340"
+           id="tspan3314-8"
+           sodipodi:role="line">Plan 3</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2987-6"
+         y="182.36218"
+         x="-80"
+         style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           y="182.36218"
+           x="-80"
+           id="tspan2989-1"
+           sodipodi:role="line">⨝</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2991-9"
+         y="222.36218"
+         x="-120"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
            y="222.36218"
-           id="text2987-6"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2989-1"
-             x="-10"
-             y="222.36218">⨝</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="-50"
-           y="262.36218"
-           id="text2991-9"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2993-4"
-             x="-50"
-             y="262.36218">R</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="40"
-           y="262.36218"
-           id="text2995-9"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2997-7"
-             x="40"
-             y="262.36218">S</tspan></text>
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m -39.999997,252.36218 30,-20"
-           id="path2999-9"
-           inkscape:connector-curvature="0" />
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 10.000003,232.36218 30,20"
-           id="path3001-2"
-           inkscape:connector-curvature="0" />
-        <text
-           xml:space="preserve"
-           style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-           x="40"
+           x="-120"
+           id="tspan2993-4"
+           sodipodi:role="line">B</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2995-9"
+         y="222.36218"
+         x="-30"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
+           y="222.36218"
+           x="-30"
+           id="tspan2997-7"
+           sodipodi:role="line">S</tspan></text>
+      <path
+         inkscape:connector-curvature="0"
+         id="path2999-9"
+         d="m -110,212.36218 30.000003,-20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3001-2"
+         d="m -59.999997,192.36218 30,20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <text
+         sodipodi:linespacing="125%"
+         id="text2987-8-3"
+         y="132.36218"
+         x="-30"
+         style="font-size:32px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           y="132.36218"
+           x="-30"
+           id="tspan2989-7-8"
+           sodipodi:role="line">⨝</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text2995-8-3"
+         y="172.36218"
+         x="20"
+         style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
+         xml:space="preserve"><tspan
            y="172.36218"
-           id="text2987-8-3"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2989-7-8"
-             x="40"
-             y="172.36218">⨝</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#008000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
-           x="90"
-           y="212.36218"
-           id="text2995-8-3"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan2997-6-33"
-             x="90"
-             y="212.36218">B</tspan></text>
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 10.000003,202.36218 30,-20"
-           id="path2999-4-5"
-           inkscape:connector-curvature="0" />
-        <path
-           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-           d="m 60.000003,182.36218 30,20"
-           id="path3001-5-9"
-           inkscape:connector-curvature="0" />
-        <text
-           xml:space="preserve"
-           style="font-size:13px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-           x="-10"
-           y="282.36218"
-           id="text3312-1"
-           sodipodi:linespacing="125%"><tspan
-             sodipodi:role="line"
-             id="tspan3314-3"
-             x="-10"
-             y="282.36218">Plan 1</tspan></text>
-      </g>
+           x="20"
+           id="tspan2997-6-33"
+           sodipodi:role="line">R</tspan></text>
+      <path
+         inkscape:connector-curvature="0"
+         id="path2999-4-5"
+         d="m -59.999997,162.36218 30,-20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3001-5-9"
+         d="m -9.999997,142.36218 30,20"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+      <text
+         sodipodi:linespacing="125%"
+         id="text3312-1"
+         y="242.36218"
+         x="-80"
+         style="font-size:13px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           y="242.36218"
+           x="-80"
+           id="tspan3314-3"
+           sodipodi:role="line">Plan 1</tspan></text>
     </g>
   </g>
 </svg>
index 28eafaa..dd5d0d5 100644 (file)
Binary files a/bd/pdf/bd04.pdf and b/bd/pdf/bd04.pdf differ
index 26cb610..3f26edb 100644 (file)
Binary files a/bd/pdf/bd04_print.pdf and b/bd/pdf/bd04_print.pdf differ
index 767466d..5e80052 100644 (file)
Binary files a/bd/pdf/bd05.pdf and b/bd/pdf/bd05.pdf differ
index 2e54095..0e96cad 100644 (file)
Binary files a/bd/pdf/bd05_print.pdf and b/bd/pdf/bd05_print.pdf differ