Slow performance with NamedParameterJdbcTemplate

Today I tried inserting 256 rows in a single, empty PostgreSQL table which has only one index on it using Spring's NamedParameterJdbcTemplate . To my surprise the single transaction took over 3 minutes to complete, over 500ms per INSERT statement. To make things worse, the same inserts during integration testing on an H2 database completed … Continue reading Slow performance with NamedParameterJdbcTemplate

Advertisements

Flash won’t work in Google Chrome for Linux

I'm running Linux Mint with Google Chrome 59 and adbobe-flashplugin 1:20170613.2-0ubuntu0.16.04.1 installed on my system. Despite that fact the Chrome was configured to allow Flash (chrome://settings/content/flash) it still would not work. After some Google'ing I discovered that Google Chrome uses the Flash library which should be located at /opt/google/chrome/libgcflashplayer.so but in my case it was … Continue reading Flash won’t work in Google Chrome for Linux

Adding Elastichsearch filebeat to Docker images

One of the projects I'm working on uses a micro-service architecture. Every micro-service is shipped as a Docker image and executed on Amazon AWS using ECS. This basically means that on a random number of servers, a (somewhat) random number of instances of a single micro-service can run ... and this about 15 times (the … Continue reading Adding Elastichsearch filebeat to Docker images

Log contextual information to all log messages in Spring Boot using Logback’s MDC

Logging is sometimes one of the things on which too little attention is spent, but when production errors start to arrive you'll sure want to have the maximum amount of information you want. Most logging implementations in Java will give you the time, the name of the class (or to be more precise, the name … Continue reading Log contextual information to all log messages in Spring Boot using Logback’s MDC

Using alternative credentials for Liquibase in Spring Boot

One of the projects I'm working uses Spring Boot to handle all database changes for each micro-service. One of the obvious requirements to make this work is a database user with DBA rights, otherwise it can not create, alter or drop tables. You could configure the default datasource to use such user, but this would … Continue reading Using alternative credentials for Liquibase in Spring Boot

Windows Phone 10: Your account settings are out of date

Today I started my with a cheerful notice from my Windows Phone 10 mentioning that my Outlook account settings are out of date. A bit annoyed I ignored it until the afternoon when a second (hotmail) account started annoying me with the same message. Letting Windows Phone "repair" the issue resulted in nothing but an 0x80070426 … Continue reading Windows Phone 10: Your account settings are out of date