{"id":459,"date":"2008-03-27T14:08:57","date_gmt":"2008-03-27T13:08:57","guid":{"rendered":"http:\/\/soci.hu\/blog\/index.php\/2008\/03\/27\/sql-server-2008-ujdonsagok-25-large-user-defined-types-and-aggregates\/"},"modified":"2008-03-27T14:08:57","modified_gmt":"2008-03-27T13:08:57","slug":"sql-server-2008-ujdonsagok-25-large-user-defined-types-and-aggregates","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2008\/03\/27\/sql-server-2008-ujdonsagok-25-large-user-defined-types-and-aggregates\/","title":{"rendered":"SQL Server 2008 \u00fajdons\u00e1gok 25. &#8211; Large user-defined types and aggregates"},"content":{"rendered":"<p>Saj\u00e1t t\u00edpusok \u00e9s aggreg\u00e1l\u00f3 f\u00fcggv\u00e9nyek eset\u00e9n maximum 8 kbyte lehetett az adat t\u00e1rol\u00e1s\u00e1hoz sz\u00fcks\u00e9ges adatmennyis\u00e9g m\u00e9rete. Egy string \u00f6sszef\u0171z\u0151 UDA emiatt pl. hamar meghalt m\u00e1r p\u00e1r sornyi adatt\u00f3l is.<br \/>\nVagy, ha mondjuk szeretn\u00e9nk egy UTF-8 k\u00f3dol\u00e1s\u00fa string t\u00edpust \u00edrni, akkor is kellemetlen volt a 8k limit (az <a href=\"http:\/\/www.codeplex.com\/SqlServerSamples\">egyik p\u00e9lda<\/a> egy\u00e9bk\u00e9nt err\u0151l sz\u00f3l).<br \/>\nMivel jelezz\u00fck, hogy sok adatunk lesz?<\/p>\n<p>&#8220;SqlUserDefinedTypeAttribute.MaxByteSize field is set to -1, the serialized UDT can be as large as the large object (LOB) size limit (currently 2 GB).&#8221;<\/p>\n<p>Csak saj\u00e1t serialization eset\u00e9n oldott\u00e1k fel a limitet, azaz, ha implement\u00e1ljuk a System.Data.IBinarySerialize interf\u00e9szt, \u00e9s mi pump\u00e1ljuk ki \u00e9s be az adatokat. Nat\u00edv serialization eset\u00e9n tov\u00e1bbra is 8k a limit. Persze, ha valaki ilyen nagy t\u00edpus k\u00e9sz\u00edt, el\u00e9g val\u00f3sz\u00edn\u0171, hogy lesz benne string is, ahhoz meg \u00fagyse j\u00f3 a nat\u00edv serializ\u00e1l\u00e1s.<\/p>\n<p>Annak ellen\u00e9re, hogy laza lett a limit, nem \u00e9rdemes mem\u00f3ri\u00e1ba ber\u00e1ntani 120 egyenk\u00e9nt 2 gig\u00e1s sort. Ink\u00e1bb arra j\u00f3 ez, hogy ha id\u0151nk\u00e9nt t\u00fal kell l\u00e9pni a 8k-s hat\u00e1rt, akkor is m\u0171k\u00f6dni fog a t\u00edpusunk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Saj\u00e1t t\u00edpusok \u00e9s aggreg\u00e1l\u00f3 f\u00fcggv\u00e9nyek eset\u00e9n maximum 8 kbyte lehetett az adat t\u00e1rol\u00e1s\u00e1hoz sz\u00fcks\u00e9ges adatmennyis\u00e9g m\u00e9rete. Egy string \u00f6sszef\u0171z\u0151 UDA emiatt pl&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4,58],"tags":[],"class_list":["post-459","post","type-post","status-publish","format-standard","hentry","category-adatbazisok","category-szakmai-elet","category-sql-server-2008"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":0,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/459\/revisions"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}