How MySQL gap lock can lead to deadlock 14 minutes readMySQL implements gap locks as a locking mechanism to control access to a table. A gap lock can be used in a SELECT statement with the FOR UPDATE or LOCK IN S...
Splitting Rails migration into smaller pieces 9 minutes readActiveRecord migration is a great abstraction over the database schema manipulation. It looks understandable and works pretty well, however, it can take a wh...
Joining polymorphic associations in ActiveRecord 9 minutes readShort list of thoughts on how to join polymorphic associations in ActiveRecord and why it cannot be loaded eagerly.
Tracking PaperTrail versions while saving in batches 10 minutes readArticle explains how to efficiently group and query model versions with PaperTrail in Ruby on Rails application while saving multiple records in batches.
Writing Slack bot in Crystal programming language 16 minutes readSmall tutorial that shows how to quickly create a slack bot using Crystal programming language
Observer design pattern in Crystal language 9 minutes readA post where I want to share my thoughts regarding an implementation of an Observer design pattern in Crystal language.
New Year countdown With FlipClock.js less than 1 minute readJust a quick way to create awesome New Year Countdown.