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.
Learn Liquibase
Get a new skill! Master database versioning with dba-presents.com.
Promotion - 50% off
Never miss new articles
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.
Adding cache to a Spring Boot 3 application is very quick and easy. It is a matter of choosing one of a few supported cache managers and putting relevant annotations to proper places in the code. Caffeine cache is one of the options.
Do you know how to prepare update and rollback SQL scripts with Liquibase that can be provided to a DBA? Check sixty second question of full-stack dev quiz to verify that.
Liquibase is a tool to automate database upgrades starting from a script, through testing, till a deployment to production. However, sometimes we want to take care of deployment ourselves. In that case, the possibility to generate an SQL script is extremely useful.
You may create a primary key in a few different ways using Liquibase. Do you know which Liquibase changes support autorollback and which don't? Check sixty first question of full-stack dev quiz to test your knowledge.