

{"id":1466,"date":"2015-02-09T00:00:33","date_gmt":"2015-02-08T22:00:33","guid":{"rendered":"http:\/\/fabsk.eu\/blog\/?p=1466"},"modified":"2015-07-11T13:52:37","modified_gmt":"2015-07-11T11:52:37","slug":"postgresql-micro-benchmark-inserting-or-not-a-blob","status":"publish","type":"post","link":"https:\/\/fabsk.eu\/blog\/2015\/02\/09\/postgresql-micro-benchmark-inserting-or-not-a-blob\/","title":{"rendered":"Postgresql, micro-benchmark: inserting or not a blob"},"content":{"rendered":"<p>Let say that I have a table with 20 non-null text columns (32 characters long), 20 non-null integers and a blob (bytea, nullable). When inserting records, what is the overhead of setting the blob? <span style=\"text-decoration: underline;\">Answer<\/span>: about no difference up to 80ko. From that it get slower.<\/p>\n<p><span style=\"text-decoration: underline;\">Testing details<\/span>: 2000 records (on 2000 transactions), inserted on 16 threads, each of them having a persistent connection. The DB server is on the same machine (Ubuntu amd64), no particular configuration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let say that I have a table with 20 non-null text columns (32 characters long), 20 non-null integers and a blob (bytea, nullable). When inserting records, what is the overhead of setting the blob? Answer: about no difference up to 80ko. From that it get slower. Testing details: 2000 records (on 2000 transactions), inserted on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,6],"tags":[],"class_list":["post-1466","post","type-post","status-publish","format-standard","hentry","category-dev","category-informatique","\"lang=\"en"],"_links":{"self":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/comments?post=1466"}],"version-history":[{"count":1,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1466\/revisions"}],"predecessor-version":[{"id":1467,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1466\/revisions\/1467"}],"wp:attachment":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/media?parent=1466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/categories?post=1466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/tags?post=1466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}