-
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.DBMigrationTools.What is idempotence in database changes?
Idempotence in database changes — interview definition Idempotence means that executing the same database operation multiple times produces the same final state as executing it once. In other words:retrying a DB change is safe and does not corrupt data or … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.What is idempotence in database changes?
Java.DBMigrationTools.Can you use the same migration tool for multiple databases?
Flyway ✅ Supported. You can point Flyway at any JDBC URL, so you can run the same migration scripts against multiple databases. Each database keeps its own flyway_schema_history table. You typically run: Or configure multiple datasources in CI/CD. Liquibase ✅ … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.Can you use the same migration tool for multiple databases?
Java.DBMigrationTools.How do you view migration history?
That depends on the migration tool you’re using. Here are the most common ones: Flyway Flyway keeps migration history in a table called flyway_schema_history in your database. You can check it by running: Or from CLI: This shows applied, pending, … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you view migration history?
Java.DBMigrationTools.How do you reset all migrations?
Nice one 👍 resetting migrations means “wipe the DB back to empty and re-apply everything from scratch.” How you do it depends on whether you’re in dev/test or prod. 🔹 Flyway Clean (drops everything) Drops all objects (tables, views, etc.) … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you reset all migrations?
Java.DBMigrationTools.How do you skip a migration?
skipping a migration is sometimes needed (bad script, applied out-of-band, or not relevant in test). How you do it depends on your tool: 🔹 Flyway Flyway tracks migrations in a table called flyway_schema_history. Options: Mark it as applied (skip execution) … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you skip a migration?
Java.DBMigrationTools.How do you run migrations for test environments?
Testcontainers for integration tests (Java): 2) CI: run migrations as a pipeline step Typical PR check pipeline Start DB service (Compose service or CI “services”). Run migrations (Flyway/Liquibase CLI or Maven/Gradle plugin). Run tests (unit + integration). Optionally validate schema … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you run migrations for test environments?
Java.DBMigrationTools.If multiple replicas start at once (you need to ensure only one runs migrations)
⚠️ The Problem Imagine you run your app in multiple containers/replicas (e.g. in Docker Swarm, Kubernetes, or just scaling docker-compose up –scale app=3). If each replica runs database migrations on startup, then: All replicas connect to the database at the … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.If multiple replicas start at once (you need to ensure only one runs migrations)
Java.DBMigrationTools.Can migration tools be used with Docker?
Yes 👍 — migration tools (like Liquibase, Flyway, or custom SQL migration scripts) can definitely be used with Docker. In fact, containerization is very common for managing schema migrations in modern deployments. Here’s how it usually works: 🔹 Common Ways … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.Can migration tools be used with Docker?
Java.DBMigrationTools.How do you run a migration tool in a CI/CD pipeline?
Core idea Treat migrations as a separate, run-once step that runs before (or alongside) the app rollout and is safe to re-run. Use the migration tool’s locking/versioning so only one job changes the schema. Typical patterns Dedicated migration job (recommended)CI … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you run a migration tool in a CI/CD pipeline?
Java.DBMigrationTools.How do you undo a Flyway migration?
✅ Short Answer Flyway lets you undo a migration using special undo scripts — but only if you’re using Flyway Teams Edition. In open-source Flyway, undo must be done manually (e.g., with a rollback script or by reverting migrations in … Continue reading
Posted in Без рубрики
Comments Off on Java.DBMigrationTools.How do you undo a Flyway migration?