vishad.hashnode.devHibernate Performance Tuning: Cut Memory & Latency with Read-Only SessionsMost developers working with Hibernate rely on the default Session, which comes with a built-in persistence context (a first-level cache). This persistence context is great for tracking loaded entities, detecting changes, and managing dirty checking—...Sep 6, 2025·3 min read
vishad.hashnode.devMySQL & PostgreSQL Performance: The Hidden Cost of Using Functions on Indexed Columns🚨 Problem: A common mistake in SQL queries is applying functions like LOWER(), UPPER(), TRIM(), or DATE() directly on indexed columns. When you do this, the database engine cannot use the index efficiently, because the expression inside the WHERE cl...Sep 5, 2025·3 min read
vishad.hashnode.devUnlock Faster Queries: A Guide to Composite Indexes in MySQL & PostgreSQL🚨 Problem: When your SQL queries involve filtering and sorting using multiple columns, relying on individual (single-column) indexes often causes the database to ignore those indexes — or worse, perform a full table scan. This results in slower perf...Sep 5, 2025·3 min read
vishad.hashnode.devHow to Solve Even Subarrays on LeetcodeProblem Description You are given an integer array A. Your task is to determine whether it is possible to divide this array into one or more subarrays, each having an even length. Additionally, for each of these subarrays, the first and last elements...Sep 15, 2024·2 min read
vishad.hashnode.devBoost Node.js Security: A Guide to Two-Factor AuthenticationIntroduction Explanation of Two-Factor Authentication (2FA) Two-Factor Authentication (2FA) is a security process that enhances the protection of your online accounts by requiring two different forms of identification before granting access. This met...Sep 14, 2024·16 min read