I know, it has taken some time since the last article. Probably it is even more important to test what you remember. Check the sixty sixth question of full-stack dev quiz to find out, what you remember about GSON.
Learn Liquibase
Get a new skill! Master database versioning with dba-presents.com.
Promotion - 50% off
Never miss new articles
I know, it has taken some time since the last article. Probably it is even more important to test what you remember. Check the sixty sixth question of full-stack dev quiz to find out, what you remember about GSON.
JSON has become a famous data format for exchanging information over the Internet. It is commonly used in REST API and for storing loosely structured data. Compared to XML, it is concise, and unfortunately, less human readable. Beautifiers and pretty printers can easily enhance this. I will show you the different options available in GSON to convert an array of objects to a JSON string.
After a few years of promoting Liquibase Hub, it is officially shutting down. Apparently, it wasn't so broadly used as it had been expected. If you haven't started to use it, yet, now you don't have to. If you have, you can consider moving to the database Observability feature. Unfortunately, it is available in Liquibase Pro.
In a real-life project developed by one or more teams, the number of change sets can quickly grow. What are the best practices for organizing Liquibase changelog files? Should all change sets be put to one large change log file or does it makes sense to have a separate file for each release? Well. That depends on the particular project, but I can tell you how I usually do that.
HashSet is probably the most popular implementation of a set in Java. An important reason of that is computational complexity of crucial operation on HashSet. Check sixty fith question of full-stack dev quiz to find out, if you know what that means.
HashSets are known from its efficiency, when it comes to checking, if they contain a particular object. They were designed exactly for doing that in a constant time. Contrary, checking objects existence in an ArrayList has a linear computational complexity, which is less efficient in theory. But is it true for small sets as well?
Liquibase has a way to easily import data from to file to a database table. Did you know that? Check sixty fourth question of full-stack dev quiz to verify if you know how to use it.
Besides managing a database structures, Liquibase can also load data into an existing table. If there are many rows to insert, the loadData change may be especially useful. It allows to load data from a CSV file to an existing database table. In many cases preconfigured settings are enough to do the job. But it also allows customizations like defining a separator, reordering the columns or even skipping some columns.
Caching may save performance of your system. For example, Caffeine Cache is one of powerful cache libraries that offer various configuration options. Speaking of options... do you know how to configure Caffeine Cache? Check sixty second question of full-stack dev quiz to check it.