-
MY PROJECTS
-
Recent Posts
- SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?
- SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?
- SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?
- SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?
- SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?
- SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
- SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?
- SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?
- SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?
- SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?
- ChromeDevTools.Watch all failed requests
- SQL.What are domain types (or constraints on data types), and how do they help enforce data correctness?
- SQL.How does SQL handle comparisons between different data types (for example, string vs number), and why is this dangerous?
- SQL.What is the difference between DATE, TIME, TIMESTAMP, and TIMESTAMPTZ, and which one should be used for business events?
- SQL.How do numeric types like INTEGER, BIGINT, DECIMAL, and FLOAT differ in terms of precision and use cases?
- SQL.What problems can arise from implicit type casting in SQL, and how can it affect indexes?
- SQL.How does NULL differ from 0, an empty string, or FALSE in SQL?
- SQL.What is the difference between CHAR, VARCHAR, and TEXT, and when would you choose each?
- SQL.What is MVCC ?
- SQL.What is AutoVacuum Postgres ?
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений
Category Archives: Без рубрики
Java.Hibernate.Middle.What is the N+1 select problem in Hibernate?
🔎 What is the N+1 select problem? It happens when you fetch a collection of parent entities, and then Hibernate lazily loads each child entity in a separate query. Specifically:1️⃣ First, Hibernate executes 1 query to load your list of … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Middle.What is the N+1 select problem in Hibernate?
Java.Hibernate.Middle.How do you monitor cache hit/miss statistics?
✅ Short Answer You can monitor Hibernate’s second-level cache statistics using the Hibernate Statistics API, which tracks cache hits, misses, and puts for entities, collections, and queries. 🔎 Detailed Explanation 🔹 1) Enable Hibernate StatisticsFirst, you must enable statistics collection … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Middle.How do you monitor cache hit/miss statistics?
Java.Hibernate.Medium.How can i evict entity from Hibernate Cache in Spring enviroment ?
✅ Short Answer In a Spring environment, you evict an entity from the second-level cache by accessing the SessionFactory bean (from your JPA/Hibernate integration) and calling getCache().evictEntityData(…). 🔎 Detailed Explanation 🔹 1) Obtain the SessionFactoryIf you use Spring Boot with … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.How can i evict entity from Hibernate Cache in Spring enviroment ?
Java.Hibernate.Middle.How do you evict an entity from the second-level cache?
✅ Short Answer You can evict a specific entity or entire cache regions from Hibernate’s second-level cache using the SessionFactory.getCache() API → this lets you remove stale or invalid entries manually. 🔎 Detailed Explanation 🔹 1) Evict a Specific EntityTo … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Middle.How do you evict an entity from the second-level cache?
Java.Hibernate.Medium.How can you cache query results?
✅ Short Answer You can cache query results in Hibernate by:1️⃣ Enabling the query cache in your Hibernate configuration.2️⃣ Marking individual queries as cacheable with .setCacheable(true).This allows Hibernate to store entire result sets in the second-level cache, speeding up repeated … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.How can you cache query results?
Java.Hibernate.Middle.How Hibernate invalidates cache in case of read-write strategy ?
✅ Short Answer In READ_WRITE strategy, Hibernate uses a mechanism called cache invalidation: when an entity is updated or deleted, it evicts the corresponding cached entry, marking it stale so it can’t be served until reloaded from the database. 🔎 … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Middle.How Hibernate invalidates cache in case of read-write strategy ?
Java.Hibernate.Middle.What is the difference between read-only and read-write second-level cache strategies?
✅ Short Answer READ_ONLY strategy: for immutable data — assumes entities never change → highest performance but unsafe if data is updated. READ_WRITE strategy: for mutable data — safely tracks changes and synchronizes the cache when entities are updated → … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Middle.What is the difference between read-only and read-write second-level cache strategies?
Java.Hibernate.Medium.when do i need 2 level cache ?
✅ Short Answer You need a second-level cache (2LC) when your application frequently reads the same data across sessions and wants to avoid repeated database hits, especially for read-heavy, rarely changing data. 🔎 Detailed Explanation 🔹 When 2LC is useful✅ … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.when do i need 2 level cache ?
Java.Hibernate.Medium.How do you configure second-level cache with Ehcache or another provider?
✅ Short Answer To configure Hibernate’s second-level cache with Ehcache (or another provider), you:1️⃣ Add the caching library to your dependencies.2️⃣ Configure Hibernate properties to enable second-level and query caches.3️⃣ Configure your cache provider (Ehcache or others) via XML or … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.How do you configure second-level cache with Ehcache or another provider?
Java.Hibernate.Medium.What are pros and cons of each inheritance mapping strategy?
✅ 1) SINGLE_TABLE Pros:✅ Fastest read performance → only one table, no joins or unions needed.✅ Simpler to query → easy polymorphic queries.✅ Simple schema → easier to manage in simple hierarchies. Cons:❌ Many nullable columns → wasted space when … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What are pros and cons of each inheritance mapping strategy?