1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-23 00:14:21 +00:00
triennale-appunti-steffo/docs/route-BasiDiDati.chunk.33463.esm.js

14 lines
16 KiB
JavaScript
Raw Normal View History

2020-06-16 20:03:15 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"2e/m":function(l,n,e){"use strict";(function(l){var t=e("UrZR"),i=e.n(t);n.a=function(n){return l("table",{class:i.a.tablepanel},n.children)}}).call(this,e("hosL").h)},"3duz":function(l){l.exports={red:"red__z2C0u",orange:"orange__3e-Zm",yellow:"yellow__2CxNB",lime:"lime__33JDs",cyan:"cyan__1exnO",blue:"blue__16AH0",magenta:"magenta__3tO7w",example:"example__9acWs"}},"8uYk":function(l){l.exports={red:"red__339Cz",orange:"orange__24_8v",yellow:"yellow__1Jo9W",lime:"lime__34yV5",cyan:"cyan__3RqLr",blue:"blue__13Wnj",magenta:"magenta__2tkzq",box:"box__3cKyY",default:"default__v-emJ"}},JESo:function(l){l.exports={red:"red__1s_qO",orange:"orange__8yp3v",yellow:"yellow__zZSeb",lime:"lime__3c_Z7",cyan:"cyan__EdN8X",blue:"blue__3YDdr",magenta:"magenta__D6iXm",inline:"inline__1yl8V",block:"block__fPiiB"}},OPqz:function(l,n,e){"use strict";(function(l){var t=e("TWV3"),i=e("hosL");n.a=function(n){return l(i.Fragment,null,l("h2",null,n.title),l(t.a,null,n.children))}}).call(this,e("hosL").h)},OmdA:function(l){l.exports={red:"red__1-G1M",orange:"orange__26Xfh",yellow:"yellow__p5pgZ",lime:"lime__2wXxY",cyan:"cyan__289vE",blue:"blue__Zipdn",magenta:"magenta__39Nrz",title:"title__3ZVpg",contents:"contents__20_NI"}},PGF6:function(l,n,e){"use strict";var t=e("hosL");n.a=Object(t.createContext)(null)},Q7TX:function(l,n,e){"use strict";(function(l){e.d(n,"a",(function(){return r}));var t=e("JESo"),i=e.n(t),o=e("QRet"),a=e("8CDw"),u=e("wQ73"),c=e("PGF6");const r=Object.freeze({INLINE:i.a.inline,BLOCK:i.a.block});n.b=function(n){let e,t,s=Object(o.b)(a.a),_=Object(o.b)(u.a),d=Object(o.b)(c.a);return e=void 0===n.inline?_:n.inline,t=void 0===n.display?null===d?r.INLINE:d:n.display,l("img",e?{src:`https://latex.codecogs.com/svg.latex?\\inline {\\color{${s}} ${n.children} }`,alt:n.children,title:n.children,class:i.a.latex+" "+t}:{src:`https://latex.codecogs.com/svg.latex?{\\color{${s}} ${n.children} }`,alt:n.children,title:n.children,class:i.a.latex+" "+t})}}).call(this,e("hosL").h)},QNda:function(l,n,e){"use strict";(function(l){e.d(n,"a",(function(){return a}));var t=e("hosL"),i=e("e8JA"),o=e.n(i);class a extends t.Component{constructor(){super(),this.state={now:Date.now()},this.timer=null}componentDidMount(){this.timer=setInterval(()=>{this.setState({now:Date.now()})},1e3)}componentWillUnmount(){null!==this.timer&&clearInterval(this.timer)}render(){let n="Unknown date",e=o.a.timer,t={milliseconds:"?",seconds:"?",minutes:"?",hours:"?",days:"?"};if(this.props.to){n=new Date(this.props.to);let l=n-this.state.now;l>0?t={milliseconds:l%1e3,seconds:Math.floor(l/1e3)%60,minutes:Math.floor(l/6e4)%60,hours:Math.floor(l/36e5)%24,days:Math.floor(l/864e5)}:(t={milliseconds:0,seconds:0,minutes:0,hours:0,days:0},e+=" "+o.a.expired)}else e+=" "+o.a.unknown;return l("div",{class:e,title:n},l("div",{class:o.a.days+" "+o.a.count},t.days),l("div",{className:o.a.days+" "+o.a.text},"giorni"),l("div",{class:o.a.hours+" "+o.a.count},t.hours),l("div",{className:o.a.hours+" "+o.a.text},"ore"),l("div",{class:o.a.minutes+" "+o.a.count},t.minutes),l("div",{className:o.a.minutes+" "+o.a.text},"minuti"),l("div",{class:o.a.seconds+" "+o.a.count},t.seconds),l("div",{class:o.a.seconds+" "+o.a.text},"secondi"))}}}).call(this,e("hosL").h)},QRet:function(l,n,e){"use strict";function t(l,n){N.options.__h&&N.options.__h(y,l,z||n),z=0;var e=y.__H||(y.__H={__:[],__h:[]});return l>=e.__.length&&e.__.push({}),e.__[l]}function i(l){return z=1,o(g,l)}function o(l,n,e){var i=t(v++,2);return i.t=l,i.__c||(i.__c=y,i.__=[e?e(n):g(void 0,n),function(l){var n=i.t(i.__[0],l);i.__[0]!==n&&(i.__[0]=n,i.__c.setState({}))}]),i.__}function a(l,n){var e=t(v++,3);!N.options.__s&&b(e.__H,n)&&(e.__=l,e.__H=n,y.__H.__h.push(e))}function u(l,n){var e=t(v++,4);!N.options.__s&&b(e.__H,n)&&(e.__=l,e.__H=n,y.__h.push(e))}function c(l){return z=5,s((function(){return{current:l}}),[])}function r(l,n,e){z=6,u((function(){"function"==typeof l?l(n()):l&&(l.current=n())}),null==e?e:e.concat(l))}function s(l,n){var e=t(v++,7);return b(e.__H,n)?(e.__H=n,e._
C = {\color{yellow} {C_{indice}}} + {\color{Orange} C_{relazione}}
`))),l("p",null,"Per accedere attraverso un indice a una specifica tupla della relazione, si spenderà:"),l(s.a,null,Q(B||(B=j`
C = {\color{yellow} 1} + {\color{Orange} 1}
`))),l("p",null,"Se le tuple a cui si vuole accedere sono più di una, allora, il costo dipenderà da se l'indice è clustered o non-clustered."),l(_.a,null,"Nel calcolo del costo di una query, si considerano tutti i cambi di pagina come ",l("b",null,"page fault"),"."),l("p",null,"Per gli indici ",l("b",null,"clustered"),", visto che basta caricare in memoria i blocchi in sequenza, il costo sarà:"),l(s.a,null,Q(S||(S=j`
C = {\color{yellow} ( F \cdot N_{foglie} ) } + {\color{Orange} ( F \cdot N_{blocchi} ) }
`))),l("p",null,"Per gli indici ",l("b",null,"unclustered"),", per i quali potremmo dover caricare e rimuovere lo stesso blocco dalla memoria più volte, il costo sarà:"),l(s.a,null,Q(V||(V=j`
C = {\color{yellow} ( F \cdot N_{foglie} ) } + {\color{Orange} ( F \cdot N_{tuple} ) }
`))),l("p",null,"Se si stanno effettuando query su più indici unclustered, il costo sarà:"),l(s.a,null,Q(M||(M=j`
C = {\color{yellow}\sum_k ( F_k \cdot N_{foglie_k} )} + {\color{Orange} \left( \prod_k F_k \cdot N_{tuple} \right)}
`)))),l(o.a,{title:"Costo di join"},l("p",null,"Quante ",l("i",null,"unità di lavoro")," costa effettuare un join tra due relazioni."),l("p",null,"Varia in base al metodo di join utilizzato."),l("p",null,"Utilizzando il metodo del ",l("b",null,"nested loop"),":"),l(s.a,null,Q($||($=j`
C_{1 \times 2} = C_1 + ( N_{selezionati_1} \cdot C_2 )
`))),l("p",null,"La scelta della colonna su cui iterare è quindi importante!"))))}}}.call(this,e("hosL").h)},TWV3:function(l,n,e){"use strict";(function(l){var t=e("htlC"),i=e.n(t);n.a=function(n){let e;return e=Array.isArray(n.children)?n.children.map(n=>l("div",{class:i.a.splitchild},n)):l("div",{class:i.a.splitchild},n.children),l("div",{class:i.a.split},l("div",{class:i.a.splitparent},e))}}).call(this,e("hosL").h)},UEzA:function(l,n,e){"use strict";(function(l){var t=e("zDbI");n.a=function(n){return l("p",null,l(t.a,null,n.children))}}).call(this,e("hosL").h)},UrZR:function(l){l.exports={red:"red__2hgQp",orange:"orange__tGLf9",yellow:"yellow__15oHB",lime:"lime__DGxfH",cyan:"cyan__d6Sml",blue:"blue__4v0nZ",magenta:"magenta__3H2kV",tablepanel:"tablepanel__1Wil3"}},Wxxq:function(l,n,e){"use strict";(function(l){var t=e("3duz"),i=e.n(t);e("hosL"),n.a=function(n){return l("div",{class:i.a.example},n.children)}}).call(this,e("hosL").h)},Y9Ml:function(l,n,e){"use strict";(function(l){var t=e("8uYk"),i=e.n(t);const o=Object.freeze({RED:i.a.red,ORANGE:i.a.orange,YELLOW:i.a.yellow,LIME:i.a.lime,CYAN:i.a.cyan,BLUE:i.a.blue,MAGENTA:i.a.magenta,DEFAULT:i.a.default});n.a=function(n){let e=o.DEFAULT;return n.color&&(e=n.color),l("div",{class:i.a.box+" "+e},n.children)}}).call(this,e("hosL").h)},e8JA:function(l){l.exports={red:"red__3683f",orange:"orange___PVUv",yellow:"yellow__CS7Ak",lime:"lime__3bqTp",cyan:"cyan__3UE2X",blue:"blue__2n3Ng",magenta:"magenta__1M1Vw",timer:"timer__3Z2pL",days:"days__myhe2",hours:"hours__3JUDn",minutes:"minutes__24lD7",seconds:"seconds__2vZ4f",count:"count__chi9X",text:"text__34ldC",unknown:"unknown__3sT2P",expired:"expired__zNiuP"}},htlC:function(l){l.exports={red:"red__YF6Vb",orange:"orange__2w5to",yellow:"yellow__XvcrZ",lime:"lime__2MtRd",cyan:"cyan__36T9w",blue:"blue__1l1tt",magenta:"magenta__2SE7I",splitparent:"splitparent__3-wBs",splitchild:"splitchild__begkX"}},imVn:function(l,n,e){"use strict";(function(l){var t=e("OmdA"),i=e.n(t),o=e("Y9Ml");n.a=function(n){return l(o.a,{color:n.color},l("h3",{class:i.a.title},n.title),l("div",{class:i.a.contents},n.children))}}).call(this,e("hosL").h)},wQ73:function(l,n,e){"use strict";var t=e("hosL");n.a=Object(t.createContext)(!0)},yDBo:function(l,n,e){"use strict";(function(l){var t=e("Q7TX");n.a=function(n){return l(t.b,{inline:!0,display:t.a.INLINE},n.children)}}).call(this,e("hosL").h)},zDbI:function(l,n,e){"use strict";(function(l){var t=e("Q7TX");n.a=function(n){return l(t.b,{inline:!1,display:t.a.BLOCK},n.children)}}).call(this,e("hosL").h)}}]);
//# sourceMappingURL=route-BasiDiDati.chunk.33463.esm.js.map