A while I ago I covered the upsert feature PostgreSQL introduced with version 9.5. Back then I showed you how to make use of upsert with one field - the primary key - as conflict target. In a recent attempt to modify the upsert logic to take 2 fields into account I tried to add the additional field to the conflict target:
19 posts tagged with "postgresql"
View All TagsUpsert with PostgreSQL
Since version 9.5 PostgreSQL provides support for upsert. Upsert allows you to "atomically either insert a row, or on the basis of the row already existing, UPDATE that existing row instead, while safely giving little to no further thought to concurrency". While experimenting with the Prooph Event Store library I came across a good use-case for upsert, so I gave it a try. The goal was to build a projection based on the event stream to count the number certain events based for a specific day - think of registrations per day.
PostgreSQL - Count() Performance Boost
Counting is a slow measure in Postgresql, and it is even slower with a lot of data and complex statements. This issue is related with the kind of how the data consistency is implemented. As a result Postgresql must check the visiblity of all rows first and so it has to iterate over them all.
Think About It: PHP/PostgreSQL Bulk Performance (Part 3)
This article is the last of a three-part series and describes how we optimized the persistence process of bulk data in our code in combination with PostgreSQL. Make sure you covered the first article about how we tweaked PHPExcel to run faster while reading Excel and CSV files and the second article about how we optimized our data processing and reached performance improvements tweaking our code.
conference data2day 2015
Vom 29.09.2015 bis zum 01.10.2015 findet in Karlsruhe die Konferenz data2day 2015 statt. Ich freue mich dabei zu sein zu können und mit meinem Vortrag "PostgreSQL: Die NoSQL Datenbank die niemand kennt" zeigen zu können dass sich auch tradtionelle relationale Datenbanken für "NoSQL" Anforderungen eignen können.
SMART DATA Developer Conference 2015
Vom 01.12.2015 bis zum 02.12.2015 findet in Köln die SMART DATA Developer Conference 2015 statt. Ich freue mich dabei zu sein und meinen Vortrag "PostgreSQL: Die NoSQL Datenbank die niemand kennt" präsentieren zu dürfen. Zusätzlich zum Vortrag werde ich am 01.12 einen Workshop "NoSQL mit PostreSQL" anbieten und freue mich auf interessierte Teilnehmer.
NoSQL Matters Dublin 2015
Am 04.06.2015 findet in Dublin die NoSQL Matters Konferenz statt. Ich freue mich dabei zu sein und meinen Vortrag "The NoSQL Store everyone ignores: PostgreSQL" präsentieren zu dürfen.
JavaLand 2015
Vom 24.03.2015 bis zum 25.03.2015 findet im Phantasialand, Brühl zum zweiten Mal die Konferenz JavaLand 2015 statt. Die conference gilt als das "Event der Java-Community für die Java-Community". Ich freue mich dabei sein zu dürfen und meinen Vortrag "PostgreSQL: Die NoSQL Datenbank die niemand kennt" präsentieren zu können. Mit dem Vortrag werde ich aufzeigen wie man PostgreSQL als NoSQL Datenbank einsetzen kann und erörten warum dies in bestimmten Situationen durchaus Sinn machen kann.
Developer Week 2014
Bereits zum zweiten Mal findet in Nürnberg die Developer Week statt. Die Konferenz findet vom 14.07.2014 - 17.07.2014 im Nürnberg Convention Center NCC Ost statt und vereint die drei Sub-Konferenzen die NET Developer Conference, die Mobile Developer Conference und die Web Developer Conference. Ich freue mich mit meinem Vortrag "PostgreSQL: Die NoSQL Datenbank die niemand kennt" dabei zu sein. Der Vortrag zeigt auf wie man PostgreSQL als NoSQL Datenbank einsetzen kann und stellt dar warum dies in bestimmten Situationen durchaus Sinn machen kann.
Berlin Expert Days 2014
Vom 03.04.2014 bis zum 04.04.2014 findet in Berlin die conference BED-Con 2014 statt. Die conference deckt Inhalte aus den Bereichen Java und NoSQL bis hin zu Javascript und den mobilen Technologien ab. In meinem Vortrag "PostgreSQL: Die NoSQL Datenbank die niemand kennt" werde ich darlegen wie man PostgreSQL als NoSQL Datenbank einsetzen kann und aufzeigen warum dies in bestimmten Situationen durchaus Sinn machen kann.