mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-26 18:04:20 +00:00
14 lines
16 KiB
JavaScript
14 lines
16 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"2e/m":function(l,n,t){"use strict";(function(l){var e=t("UrZR"),i=t.n(e);n.a=function(n){return l("table",{class:i.a.tablepanel},n.children)}}).call(this,t("hosL").h)},"3duz":function(l){l.exports={example:"example__9acWs"}},"8uYk":function(l){l.exports={box:"box__3cKyY",default:"default__v-emJ",red:"red__339Cz",orange:"orange__24_8v",yellow:"yellow__1Jo9W",lime:"lime__34yV5",cyan:"cyan__3RqLr",blue:"blue__13Wnj",magenta:"magenta__2tkzq"}},JESo:function(l){l.exports={inline:"inline__1yl8V",block:"block__fPiiB"}},OPqz:function(l,n,t){"use strict";(function(l){var e=t("TWV3"),i=t("hosL");n.a=function(n){return l(i.Fragment,null,l("h2",null,n.title),l(e.a,null,n.children))}}).call(this,t("hosL").h)},OmdA:function(l){l.exports={title:"title__3ZVpg",contents:"contents__20_NI"}},PGF6:function(l,n,t){"use strict";var e=t("hosL");n.a=Object(e.createContext)(null)},Q7TX:function(l,n,t){"use strict";(function(l){t.d(n,"a",(function(){return r}));var e=t("JESo"),i=t.n(e),o=t("QRet"),u=t("8CDw"),a=t("wQ73"),c=t("PGF6");const r=Object.freeze({INLINE:i.a.inline,BLOCK:i.a.block});n.b=function(n){let t,e,s=Object(o.b)(u.a),d=Object(o.b)(a.a),_=Object(o.b)(c.a);return t=void 0===n.inline?d:n.inline,e=void 0===n.display?null===_?r.INLINE:_:n.display,l("img",t?{src:`https://latex.codecogs.com/svg.latex?\\inline {\\color{${s}} ${n.children} }`,alt:n.children,title:n.children,class:i.a.latex+" "+e}:{src:`https://latex.codecogs.com/svg.latex?{\\color{${s}} ${n.children} }`,alt:n.children,title:n.children,class:i.a.latex+" "+e})}}).call(this,t("hosL").h)},QNda:function(l,n,t){"use strict";(function(l){t.d(n,"a",(function(){return u}));var e=t("hosL"),i=t("e8JA"),o=t.n(i);class u extends e.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",t=o.a.timer,e={milliseconds:"?",seconds:"?",minutes:"?",hours:"?",days:"?"};if(this.props.to){n=new Date(this.props.to);let l=n-this.state.now;l>0?e={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)}:(e={milliseconds:0,seconds:0,minutes:0,hours:0,days:0},t+=" "+o.a.expired)}else t+=" "+o.a.unknown;return l("div",{class:t,title:n},l("div",{class:o.a.days+" "+o.a.count},e.days),l("div",{className:o.a.days+" "+o.a.text},"giorni"),l("div",{class:o.a.hours+" "+o.a.count},e.hours),l("div",{className:o.a.hours+" "+o.a.text},"ore"),l("div",{class:o.a.minutes+" "+o.a.count},e.minutes),l("div",{className:o.a.minutes+" "+o.a.text},"minuti"),l("div",{class:o.a.seconds+" "+o.a.count},e.seconds),l("div",{class:o.a.seconds+" "+o.a.text},"secondi"))}}}).call(this,t("hosL").h)},QRet:function(l,n,t){"use strict";function e(l,n){z.options.__h&&z.options.__h(N,l,x||n),x=0;var t=N.__H||(N.__H={__:[],__h:[]});return l>=t.__.length&&t.__.push({}),t.__[l]}function i(l){return x=1,o(b,l)}function o(l,n,t){var i=e(g++,2);return i.t=l,i.__c||(i.__c=N,i.__=[t?t(n):b(void 0,n),function(l){var n=i.t(i.__[0],l);i.__[0]!==n&&(i.__[0]=n,i.__c.setState({}))}]),i.__}function u(l,n){var t=e(g++,3);!z.options.__s&&v(t.__H,n)&&(t.__=l,t.__H=n,N.__H.__h.push(t))}function a(l,n){var t=e(g++,4);!z.options.__s&&v(t.__H,n)&&(t.__=l,t.__H=n,N.__h.push(t))}function c(l){return x=5,s((function(){return{current:l}}),[])}function r(l,n,t){x=6,a((function(){"function"==typeof l?l(n()):l&&(l.current=n())}),null==t?t:t.concat(l))}function s(l,n){var t=e(g++,7);return v(t.__H,n)?(t.__H=n,t.__h=l,t.__=l()):t.__}function d(l,n){return x=8,s((function(){return l}),n)}function _(l){var n=N.context[l.__c],t=e(g++,9);return t.__c=l,n?(null==t.__&&(t.__=!0,n.sub(N)),n.props.value):l.__}function f(l,n){z.options.useDebugValue&&z.options.useDebugValue(n?n(l):l)}function p(){w.some((function(l){if(l.__P)try{l.__H.__h.forEach(h),l.__H.__h.forEach(m),l.__H.__h=[]}catch(n){return l.__H.__h=[],z.options.__e(n,l.__v),!0}})),w=[]}fun
|
||
|
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,M(B||(B=W`
|
||
|
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(d.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,M($||($=W`
|
||
|
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,M(S||(S=W`
|
||
|
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,M(V||(V=W`
|
||
|
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,M(j||(j=W`
|
||
|
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,t("hosL").h)},TWV3:function(l,n,t){"use strict";(function(l){var e=t("htlC"),i=t.n(e);n.a=function(n){let t;return t=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},t))}}).call(this,t("hosL").h)},UEzA:function(l,n,t){"use strict";(function(l){var e=t("zDbI");n.a=function(n){return l("p",null,l(e.a,null,n.children))}}).call(this,t("hosL").h)},UrZR:function(l){l.exports={tablepanel:"tablepanel__1Wil3"}},Wxxq:function(l,n,t){"use strict";(function(l){var e=t("3duz"),i=t.n(e);t("hosL"),n.a=function(n){return l("div",{class:i.a.example},n.children)}}).call(this,t("hosL").h)},Y9Ml:function(l,n,t){"use strict";(function(l){var e=t("8uYk"),i=t.n(e);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 t=o.DEFAULT;return n.color&&(t=n.color),l("div",{class:i.a.box+" "+t},n.children)}}).call(this,t("hosL").h)},e8JA:function(l){l.exports={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={splitparent:"splitparent__3-wBs",splitchild:"splitchild__begkX"}},imVn:function(l,n,t){"use strict";(function(l){var e=t("OmdA"),i=t.n(e),o=t("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,t("hosL").h)},wQ73:function(l,n,t){"use strict";var e=t("hosL");n.a=Object(e.createContext)(!0)},yDBo:function(l,n,t){"use strict";(function(l){var e=t("Q7TX");n.a=function(n){return l(e.b,{inline:!0,display:e.a.INLINE},n.children)}}).call(this,t("hosL").h)},zDbI:function(l,n,t){"use strict";(function(l){var e=t("Q7TX");n.a=function(n){return l(e.b,{inline:!1,display:e.a.BLOCK},n.children)}}).call(this,t("hosL").h)}}]);
|
||
|
//# sourceMappingURL=route-BasiDiDati.chunk.834ae.esm.js.map
|