<?xml version="1.0" encoding="UTF-8"?><urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://sqltoactiverecord.com</loc><changefreq>weekly</changefreq><priority>1.0</priority></url><url><loc>https://sqltoactiverecord.com/guide</loc><changefreq>weekly</changefreq><priority>0.9</priority></url><url><loc>https://sqltoactiverecord.com/examples</loc><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/about</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/sql-patterns</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/performance-tips</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/documentation</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/alternatives</loc><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://sqltoactiverecord.com/rails-activerecord-query-guide</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/postgresql-to-rails-migration</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/mysql-to-activerecord-converter</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/activerecord-vs-sql-performance</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/convert/select-to-activerecord</loc><changefreq>monthly</changefreq><priority>0.6</priority></url><url><loc>https://sqltoactiverecord.com/convert/join-to-activerecord</loc><changefreq>monthly</changefreq><priority>0.6</priority></url><url><loc>https://sqltoactiverecord.com/convert/insert-to-activerecord</loc><changefreq>monthly</changefreq><priority>0.6</priority></url><url><loc>https://sqltoactiverecord.com/convert/update-to-activerecord</loc><changefreq>monthly</changefreq><priority>0.6</priority></url><url><loc>https://sqltoactiverecord.com/convert</loc><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-left-join-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-group-by-having-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-subquery-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-exists-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-case-when-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-in-clause-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-ilike-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-distinct-on-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-cte-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-upsert-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-window-function-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/sql-union-to-activerecord</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/rails-n-plus-one-query-fix</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/rails-includes-vs-preload-vs-eager-load</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/rails-joins-vs-includes</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/activerecord-explain-query-plan</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/rails-slow-query-postgresql</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/convert/rails-find-each-vs-each</loc><lastmod>2026-11-23T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/privacy</loc><changefreq>yearly</changefreq><priority>0.3</priority></url><url><loc>https://sqltoactiverecord.com/terms</loc><changefreq>yearly</changefreq><priority>0.3</priority></url><url><loc>https://sqltoactiverecord.com/blog</loc><lastmod>2026-11-23T07:08:32+00:00</lastmod><changefreq>daily</changefreq><priority>0.9</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-8-2-preview-what-production-apps-actually-gain-in-2026</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/ruby-3-5-preview-what-matters-for-rails-in-production</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/modular-monoliths-in-rails-8-1-with-engines-boundaries-without-microservices</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-8-1-devcontainers-for-teams-stop-setup-drift</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/why-activerecord-exists-the-sql-mental-model-that-breaks-in-rails</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/n-1-isn-t-a-rails-problem-it-s-a-query-shaping-problem</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/ruby-4-0-0-is-out-what-rails-activerecord-devs-actually-need-to-know</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-inner-join-with-multiple-conditions-without-lying-to-yourself</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/left-join-where-in-activerecord-the-trap-that-turns-it-into-inner-join</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-equivalent-of-full-outer-join</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-equivalent-of-sql-cross-join-and-when-you-actually-need-it</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/7-production-safe-ways-to-do-a-sql-cross-join-in-rails-and-when-you-actually-should</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-8-2-active-record-changes-that-break-at-scale</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-8-2-concurrency-why-your-app-is-thread-safe-but-still-slow</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/upgrading-to-rails-8-2-without-downtime</loc><lastmod>2026-09-23T13:05:26+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-8-2-callbacks-and-background-jobs-in-production</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-where-clause-in-activerecord-conditions-multiple-clauses-and-or-logic</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-activerecord-query-interface-guide-2026</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-select-in-activerecord-optimize-queries-with-select-and-pluck</loc><lastmod>2026-11-21T14:13:46+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/why-your-sql-knowledge-makes-learning-activerecord-harder-and-how-to-fix-it</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-query-looked-clean-generated-sql-was-horrific-learned-to-check-explain-always</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/does-activerecord-find_by-return-nil-guide-2026</loc><lastmod>2026-09-23T13:21:37+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/copied-my-perfect-sql-query-into-rails-got-n-1-performance-hell-here-s-why</loc><lastmod>2026-09-23T13:21:38+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-join-made-sense-activerecord-includes-confused-me-for-weeks-finally-clicked</loc><lastmod>2026-09-23T13:21:38+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/every-sql-to-activerecord-converter-gave-me-different-results-here-s-why-there-s-no-single-right-answer</loc><lastmod>2026-09-23T13:21:38+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/searched-sql-to-activerecord-100-times-before-building-the-tool-i-actually-needed</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/dba-learning-rails-everything-felt-wrong-sql-was-better-then-maintenance-hell-changed-my-mind</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/taught-sql-for-5-years-teaching-activerecord-broke-all-my-analogies-had-to-unlearn-to-teach</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/complex-sql-took-10-lines-activerecord-version-took-3-but-understanding-it-took-3-weeks</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/converted-50-sql-queries-to-activerecord-43-were-wrong-the-7-that-worked-taught-me-everything</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-has-one-way-to-query-activerecord-has-10-thought-it-was-flexibility-it-was-actually-paralysis</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/read-agile-web-development-with-rails-still-couldn-t-write-queries-needed-examples-not-theory</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-certification-on-resume-rails-interview-failed-knew-databases-didn-t-know-activerecord</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/junior-dev-asked-why-not-just-use-sql-gave-textbook-answer-they-weren-t-convinced-then-production-happened</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/migrated-legacy-php-app-to-rails-biggest-challenge-wasn-t-code-it-was-thinking-in-relationships</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-to-activerecord-converter-exists-but-learning-still-matters-the-tool-teaches-while-it-translates</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/added-includes-everywhere-to-fix-n-1-made-everything-slower-eager-loading-isn-t-always-the-answer</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/added-includes-everywhere-to-fix-n-1-made-everything-slower</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-to-raw-sql-when-orm-costs-80-performance-in-production</loc><lastmod>2026-09-23T14:04:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-pluck-vs-select-vs-map-memory-trap-that-killed-production</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-counter-cache-when-posts-count-brought-down-production</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-ran-47-identical-queries-bullet-gem-found-the-pattern</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/5-table-activerecord-join-8s-200ms-with-subquery-rewrite</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-find_each-vs-each-why-background-jobs-need-batch-processing</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/database-indexes-existed-activerecord-ignored-them</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/added-select-to-limit-columns-performance-improved-40-stopped-loading-data-i-didn-t-need</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-find_by-returns-nil-rails-reference-2026</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/destroy_all-vs-delete_all-in-rails-performance-callbacks-and-when-to-use-each</loc><lastmod>2026-09-23T14:04:03+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-where-vs-find_by-which-to-use-when</loc><lastmod>2026-10-03T16:35:01+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-joins-vs-includes-the-difference-that-kills-performance</loc><lastmod>2026-10-10T05:40:27+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/activerecord-group-and-count-sql-group-by-in-rails</loc><lastmod>2026-11-21T14:13:19+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-select-distinct-in-rails-activerecord-distinct-distinct-on-and-the-order-by-error</loc><lastmod>2026-11-21T08:23:54+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/rails-pick-vs-pluck-limit-1-in-activerecord</loc><lastmod>2026-11-22T10:39:24+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/sql-union-in-rails-activerecord-three-tested-ways</loc><lastmod>2026-11-23T07:08:32+00:00</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url><url><loc>https://sqltoactiverecord.com/blog/category/ruby-rails-core</loc><lastmod>2025-11-06T11:45:40+00:00</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/blog/category/performance-query-debugging</loc><lastmod>2026-01-05T13:08:49+00:00</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/blog/category/sql-to-activerecord</loc><lastmod>2026-01-05T12:56:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/blog/category/joins-associations</loc><lastmod>2026-01-05T12:57:14+00:00</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url><url><loc>https://sqltoactiverecord.com/blog/category/sql-patterns</loc><lastmod>2026-01-05T13:11:36+00:00</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url></urlset>