<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ryan Giggs</title>
    <description>The latest articles on DEV Community by Ryan Giggs (@derrickryangiggs).</description>
    <link>https://dev.to/derrickryangiggs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2544697%2F1f321a52-47b1-4034-9cc0-fba8e0b8273c.jpeg</url>
      <title>DEV Community: Ryan Giggs</title>
      <link>https://dev.to/derrickryangiggs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/derrickryangiggs"/>
    <language>en</language>
    <item>
      <title>Navicat Premium 18 on Linux: a hands-on review with Postgres, SQLite, Oracle and MySQL</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sat, 14 Nov 2026 11:29:56 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/navicat-premium-18-on-linux-a-hands-on-review-with-postgres-sqlite-oracle-and-mysql-4a42</link>
      <guid>https://dev.to/derrickryangiggs/navicat-premium-18-on-linux-a-hands-on-review-with-postgres-sqlite-oracle-and-mysql-4a42</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; Navicat gave me free Premium access for this review and offered a one-year Premium subscription (about US$1,000) if I published. Navicat did not see or approve this text, and told me the review did not have to be positive.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I tested Navicat Premium 18 (AppImage) on Ubuntu against four engines: a local Postgres 16 container, a SQLite file, an Oracle Autonomous Database on Oracle Cloud's Always Free tier (Oracle AI Database 26ai), and a MySQL HeatWave database on the same cloud. Everything used invented finance-style data. I include the SQL and the setup commands, so you can repeat each test.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Worked well:&lt;/strong&gt; Postgres to Postgres transfer and synchronization, with the exact SQL shown before anything ran. Oracle to Oracle transfer, structure sync and data sync also worked. On MySQL HeatWave, Data Transfer, Structure Synchronization, Data Synchronization and Data Masking all finished with 0 errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Needed manual checks:&lt;/strong&gt; Postgres to SQLite lost auto-numbering and defaults. Postgres to MySQL kept the keys and the foreign key but turned &lt;code&gt;SERIAL&lt;/code&gt; into a plain &lt;code&gt;int&lt;/code&gt; and dropped the &lt;code&gt;now()&lt;/code&gt; default. Postgres to Oracle mapped timestamps to &lt;code&gt;DATE&lt;/code&gt;. The &lt;code&gt;customers&lt;/code&gt; transfer failed when Navicat's generated &lt;code&gt;TO_DATE&lt;/code&gt; expression received fractional seconds its format did not allow, and trimming the source timestamps to whole seconds got those rows through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rough edges on Linux:&lt;/strong&gt; connecting to an Autonomous Database took a wallet, Oracle Instant Client and a &lt;code&gt;libaio&lt;/code&gt; link, and the Net Service Name dropdown stayed empty. The SSH tunnel to MySQL HeatWave showed a key passphrase prompt although my key has none.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI features:&lt;/strong&gt; they work with a model you bring, and the results depend on it. I used a free Nvidia model through OpenRouter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not tested:&lt;/strong&gt; real or large data, other platforms and stronger AI models.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I tested and how
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;When and where:&lt;/strong&gt; November 2026, with Navicat Premium 18 as an AppImage on Ubuntu.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; a &lt;code&gt;customers&lt;/code&gt; table (8 rows, with name, email, phone, national ID and county) and a &lt;code&gt;transactions&lt;/code&gt; table (200 rows, with amounts in KES). Larger copies, &lt;code&gt;customers_ai&lt;/code&gt; (about 1,000 generated rows) and &lt;code&gt;transactions_ai&lt;/code&gt; (200 rows), were used for the AI and transfer tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything was fake.&lt;/strong&gt; Nothing real went through Navicat or through any AI provider.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI model:&lt;/strong&gt; a free Nvidia Nemotron model reached through OpenRouter. Frontier models such as Claude from Anthropic, Kimi from Moonshot and GPT from OpenAI typically need API keys and may incur usage charges, which is why I chose a free one. It is not a model Navicat bundles, so anything below about AI output reflects that choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data Masking
&lt;/h2&gt;

&lt;p&gt;Data Masking lives under Tools and worked on Postgres, but partial masking keeps fragments of the original, so choose techniques by risk.&lt;/p&gt;

&lt;p&gt;I picked a technique for each column from a dropdown. Most of my choices produced partial masking: asterisks replace most characters while the format stays realistic.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Column&lt;/th&gt;
&lt;th&gt;What the output looked like&lt;/th&gt;
&lt;th&gt;What still leaks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;full_name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;A**** W*******&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;initial letters and name length&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;email&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;a*****w@e**********m&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;first and last character of the local part, last character of the domain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;phone&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;+25******0001&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;country prefix and last 4 digits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;national_id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;1*******&lt;/code&gt; on one copy, NULL on another&lt;/td&gt;
&lt;td&gt;one digit when partial, nothing when nulled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;county&lt;/code&gt;, &lt;code&gt;customer_id&lt;/code&gt;, &lt;code&gt;created_at&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;left unmasked on purpose&lt;/td&gt;
&lt;td&gt;not applicable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I left &lt;code&gt;customer_id&lt;/code&gt; alone because masking a key would break the link to &lt;code&gt;transactions&lt;/code&gt;. Nulling the national ID was the safest result, but it only works on columns that allow NULL, so it would fail on &lt;code&gt;full_name&lt;/code&gt;. Partial masking is fine for stopping casual viewing in test data. For anything that must resist re-identification, use a substitution technique or null the column.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queries I used for the masking test&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The masked output went into a copy of &lt;code&gt;customers&lt;/code&gt; called &lt;code&gt;customers_ai&lt;/code&gt;, so I could compare it with the original. I first created the copy with &lt;code&gt;AS TABLE&lt;/code&gt;, which copies the columns and rows but not the keys or defaults, then dropped it and used &lt;code&gt;LIKE ... INCLUDING ALL&lt;/code&gt;, which copies the structure with its constraints, defaults and indexes but no rows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;DROP&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="no"&gt;INCLUDING&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see what each technique did, I joined the original and masked tables side by side:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;original_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;masked_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;     &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;original_email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;    &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;masked_email&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the AI tests I wanted realistic names again, so I replaced the masked names in &lt;code&gt;customers_ai&lt;/code&gt; by cycling through a list of 20 invented Kenyan names:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="n"&gt;ai&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;full_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="nb"&gt;row_number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;OVER&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;rn&lt;/span&gt;
    &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="nb"&gt;row_number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;OVER&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;rn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) OVER () AS total
    FROM (VALUES
        ('Wanjiku Kamau'),
        ('Otieno Odhiambo'),
        ('Njeri Mwangi'),
        ('Mwende Mutiso'),
        ('Akinyi Odongo'),
        ('Muthoni Karuki'),
        ('Kibet Rotich'),
        ('Atieno Achieng'),
        ('Maina Njoroge'),
        ('Wekesa Barasa'),
        ('Nafula Wanjala'),
        ('Kamau Ndungu'),
        ('Achieng Ouko'),
        ('Mutuku Kilonzo'),
        ('Wambui Githinji'),
        ('Odhiambo Onyango'),
        ('Nduta Kimani'),
        ('Korir Ruto'),
        ('Auma Otieno'),
        ('Chepkorir Langat')
    ) AS v(full_name)
) np ON np.rn = ((t.rn - 1) % np.total) + 1
WHERE ai.customer_id = t.customer_id;

SELECT customer_id, full_name
FROM customers_ai
ORDER BY customer_id
LIMIT 10;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;VALUES&lt;/code&gt; list has no explicit numbering, so Postgres does not guarantee the order in which the names are cycled. Give each name an explicit number if you need a reproducible result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Postgres to Postgres: generation, transfer and synchronization
&lt;/h2&gt;

&lt;p&gt;Between two Postgres databases (&lt;code&gt;my_project_db&lt;/code&gt; as the source and &lt;code&gt;my_target_db&lt;/code&gt; as the target), Navicat copied and synced my data correctly and showed the exact SQL before running anything.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data Generation:&lt;/strong&gt; produced about 1,000 rows, and Navicat reported 0.00186 seconds for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Transfer:&lt;/strong&gt; I copied &lt;code&gt;customers&lt;/code&gt;, &lt;code&gt;customers_ai&lt;/code&gt;, &lt;code&gt;transactions&lt;/code&gt; and the two sequences behind the &lt;code&gt;SERIAL&lt;/code&gt; columns into the second database. Row counts matched, with 200 rows in &lt;code&gt;transactions&lt;/code&gt; on both sides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Synchronization:&lt;/strong&gt; after I changed one county in the source, the comparison found exactly one row to update and nothing to insert or delete. It listed &lt;code&gt;customers&lt;/code&gt; (8 rows) and &lt;code&gt;transactions&lt;/code&gt; (200 rows) as identical. After running it, the changed value appeared in the target.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Structure Synchronization:&lt;/strong&gt; it flagged the &lt;code&gt;risk_score&lt;/code&gt; column I had added and showed the &lt;code&gt;ALTER TABLE&lt;/code&gt; script before applying it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two cautions from the previews:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The data sync script updated every column of the changed row, not only the county. On a busy table, that could overwrite someone else's recent edit to another column.&lt;/li&gt;
&lt;li&gt;Sync copies whatever the source holds, including masked values. Mask before you sync to a test environment, not after.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Recompare button and a per-table tick box made it easy to check and limit what would run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queries I used on these tests&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first two statements built the &lt;code&gt;_ai&lt;/code&gt; copy of &lt;code&gt;transactions&lt;/code&gt;. The next two checked the transfer on both sides. The &lt;code&gt;ALTER TABLE&lt;/code&gt; is the schema change I used for Structure Synchronization, and the last query reads the county of the row I changed for Data Synchronization.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;transactions_ai&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt; &lt;span class="no"&gt;INCLUDING&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;transactions_ai&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM transactions;
SELECT round(sum(amount_kes), 2) FROM transactions;

ALTER TABLE customers_ai ADD COLUMN risk_score INT;

SELECT county FROM customers_ai WHERE customer_id = 1002;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Postgres to SQLite
&lt;/h2&gt;

&lt;p&gt;The data and keys survived a move to a different engine, but auto-increment and column defaults did not, so check them by hand after any cross-engine transfer.&lt;/p&gt;

&lt;p&gt;I transferred the tables from Postgres into a new SQLite file with Data Transfer, leaving the sequences unticked because SQLite has none.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Row counts&lt;/td&gt;
&lt;td&gt;Matched&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sum of &lt;code&gt;amount_kes&lt;/code&gt; over 200 rows&lt;/td&gt;
&lt;td&gt;5121876.44 in both engines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary key on &lt;code&gt;customer_id&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NOT NULL on &lt;code&gt;customer_id&lt;/code&gt; and &lt;code&gt;full_name&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Foreign key from &lt;code&gt;transactions&lt;/code&gt; to &lt;code&gt;customers&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto-numbering on &lt;code&gt;customer_id&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Lost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default on &lt;code&gt;created_at&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Lost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Types&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;int4&lt;/code&gt; became &lt;code&gt;integer(32)&lt;/code&gt;, &lt;code&gt;varchar(n)&lt;/code&gt; became &lt;code&gt;text(n)&lt;/code&gt;, timestamps became &lt;code&gt;text(6)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lost auto-numbering showed up as soon as I inserted a row without an id: SQLite rejected it with a NOT NULL constraint failure. I suspect the cause is that the column arrived as &lt;code&gt;integer(32)&lt;/code&gt; and not as a plain &lt;code&gt;INTEGER PRIMARY KEY&lt;/code&gt;, which is the form SQLite fills in itself, but I did not confirm that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queries I used on the SQLite copy&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM transactions;

PRAGMA table_info(customers);
PRAGMA foreign_key_list(transactions);
SELECT sql FROM sqlite_master WHERE name = 'customers';

SELECT * FROM customers LIMIT 3;
SELECT customer_id FROM customers ORDER BY customer_id DESC LIMIT 1;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When I asked the AI to correct the failed insert, it declined to guess. Its reply was a comment saying it could not safely correct the statement, because &lt;code&gt;customers.customer_id&lt;/code&gt; is NOT NULL and the insert supplied no value or default, and it asked for the table schema or a valid &lt;code&gt;customer_id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Postgres to Oracle Autonomous Database
&lt;/h2&gt;

&lt;p&gt;Oracle was the hardest test: getting connected took real work on Linux, and the transfer failed on timestamps until I changed the source data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connecting from Linux
&lt;/h3&gt;

&lt;p&gt;An Autonomous Database needs a downloaded wallet and an Oracle client library, so the setup is more than a hostname and password. These are the commands that got me connected, in the order that worked. Replace &lt;code&gt;&amp;lt;your_db&amp;gt;&lt;/code&gt; with your database name, and run steps 4 to 6 in one terminal so the &lt;code&gt;IC&lt;/code&gt; variable stays set.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1. Check whether an Instant Client is already on the machine.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~ /opt /usr/lib -name &lt;span class="s1"&gt;'libclntsh.so*'&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2. Unzip the Instant Client.&lt;/strong&gt; I used the 23.26 Basic zip (about 137 MB) from Oracle's download page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/oracle
unzip -q ~/Downloads/instantclient-basic-linux.x64-23.26.4.0.0.zip -d ~/oracle
ls -l ~/oracle/instantclient_23_26/libclntsh.so*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3. Unzip the wallet&lt;/strong&gt; you downloaded from the Oracle Cloud console.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/network/admin
unzip ~/Downloads/Wallet_&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;your_db&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;.zip -d ~/network/admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4. Point the wallet's &lt;code&gt;sqlnet.ora&lt;/code&gt; at a real path, and copy the wallet into the Instant Client.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;IC&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/oracle/instantclient_23_26
sed -i &lt;span class="s2"&gt;"s|DIRECTORY=\"[^\"]*\"|DIRECTORY=\"$HOME/network/admin\"|"&lt;/span&gt; ~/network/admin/sqlnet.ora
mkdir -p &lt;span class="nv"&gt;$IC&lt;/span&gt;/network/admin
cp ~/network/admin/* &lt;span class="nv"&gt;$IC&lt;/span&gt;/network/admin/
sed -i &lt;span class="s2"&gt;"s|DIRECTORY=\"[^\"]*\"|DIRECTORY=\"$IC/network/admin\"|"&lt;/span&gt; &lt;span class="nv"&gt;$IC&lt;/span&gt;/network/admin/sqlnet.ora
cat -A ~/network/admin/sqlnet.ora
cat -A &lt;span class="nv"&gt;$IC&lt;/span&gt;/network/admin/sqlnet.ora
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each file should hold two lines: the &lt;code&gt;WALLET_LOCATION&lt;/code&gt; line with your path, and &lt;code&gt;SSL_SERVER_DN_MATCH=yes&lt;/code&gt;. One of my copies lost the second line, so if yours is missing it, add it back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'\nSSL_SERVER_DN_MATCH=yes\n'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/network/admin/sqlnet.ora
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 5. Ask Linux which libraries the client cannot find.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ldd &lt;span class="nv"&gt;$IC&lt;/span&gt;/libclntsh.so.23.1 &lt;span class="o"&gt;|&lt;/span&gt; grep &lt;span class="s2"&gt;"not found"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mine listed &lt;code&gt;libnnz.so&lt;/code&gt;, &lt;code&gt;libaio.so.1&lt;/code&gt; and &lt;code&gt;libclntshcore.so.23.1&lt;/code&gt;. The first and last live in the Instant Client folder itself, and &lt;code&gt;libaio&lt;/code&gt; needs a link because Ubuntu names it &lt;code&gt;libaio.so.1t64&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6. Register the folder, link libaio, and check again.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$IC&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sudo tee /etc/ld.so.conf.d/oracle-instantclient.conf
sudo ldconfig
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
ldd &lt;span class="nv"&gt;$IC&lt;/span&gt;/libclntsh.so.23.1 &lt;span class="o"&gt;|&lt;/span&gt; grep &lt;span class="s2"&gt;"not found"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The last command should print nothing. A link placed inside the Instant Client folder did not work for libaio, because &lt;code&gt;ldconfig&lt;/code&gt; ignores it there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7. List the service names in the wallet.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -oE &lt;span class="s1"&gt;'^[A-Za-z0-9_]+ *='&lt;/span&gt; &lt;span class="nv"&gt;$IC&lt;/span&gt;/network/admin/tnsnames.ora
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see five aliases ending in &lt;code&gt;_high&lt;/code&gt;, &lt;code&gt;_medium&lt;/code&gt;, &lt;code&gt;_low&lt;/code&gt;, &lt;code&gt;_tp&lt;/code&gt; and &lt;code&gt;_tpurgent&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8. Set up Navicat.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Tools &amp;gt; Options &amp;gt; Environment, set the OCI library to &lt;code&gt;/home/&amp;lt;you&amp;gt;/oracle/instantclient_23_26/libclntsh.so&lt;/code&gt;. Leave "Use bundled OCI library" unticked, then quit Navicat completely and reopen it.&lt;/li&gt;
&lt;li&gt;Create an Oracle connection with Connection Type TNS, type the Net Service Name by hand (I used the &lt;code&gt;_low&lt;/code&gt; alias), enter your user, and type the password yourself.&lt;/li&gt;
&lt;li&gt;Click Test Connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two things confused me. The Net Service Name dropdown stayed empty even though &lt;code&gt;tnsnames.ora&lt;/code&gt; was valid, but typing the alias by hand worked, and Navicat then filled in the full Service Name itself. And with no alias set, the error was ORA-12547 (lost contact), which says nothing about a missing service name. A later ORA-01017 simply meant the password I typed did not match the one stored in the database, so check that before blaming the wallet.&lt;/p&gt;

&lt;p&gt;Also worth knowing for a trial: Always Free databases stop after 7 days of inactivity and need a manual Start in the Oracle console. Oracle's &lt;a href="https://docs.oracle.com/en-us/iaas/Content/GSG/Concepts/alwaysfree.htm" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; also says a database that is stopped and stays inactive for 90 days, cumulative, may be reclaimed and permanently deleted, so start it again before then if you want to keep it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating the test user
&lt;/h3&gt;

&lt;p&gt;I ran this in Database Actions as ADMIN. Choose your own password, 12 to 30 characters with an upper-case letter, a lower-case letter and a digit, and type it without the angle brackets. My first attempt kept the brackets as part of the password, and every login then failed with ORA-01017.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt; &lt;span class="no"&gt;IDENTIFIED&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;your password&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="no"&gt;DWROLE&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt; &lt;span class="no"&gt;QUOTA&lt;/span&gt; &lt;span class="no"&gt;UNLIMITED&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="no"&gt;DATA&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To change the password later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt; &lt;span class="no"&gt;IDENTIFIED&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;new password&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check the account and the session from ADMIN:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;account_status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authentication_type&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_users&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'NAVICAT_TEST'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;granted_role&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_role_privs&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;grantee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'NAVICAT_TEST'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'USERENV'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'SESSION_USER'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dual&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After I edited a duplicated connection to use &lt;code&gt;navicat_test&lt;/code&gt;, an open query tab still returned &lt;code&gt;ADMIN&lt;/code&gt;. Navicat keeps the old session alive, so close the tab and the connection, then reopen the connection.&lt;/p&gt;

&lt;h3&gt;
  
  
  What the transfer showed
&lt;/h3&gt;

&lt;p&gt;I transferred four tables from Postgres into the new schema. The final row counts matched the source, but only after the timestamp problem below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Row counts&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;customers&lt;/code&gt; 8, &lt;code&gt;customers_ai&lt;/code&gt; 1000, &lt;code&gt;transactions&lt;/code&gt; 200, &lt;code&gt;transactions_ai&lt;/code&gt; 200, matching Postgres&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sum of &lt;code&gt;amount_kes&lt;/code&gt; on &lt;code&gt;transactions&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;5121876.44 in Oracle and in Postgres&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Table names&lt;/td&gt;
&lt;td&gt;created as quoted lower-case names, so queries need &lt;code&gt;"customers"&lt;/code&gt; in double quotes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integers&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;integer&lt;/code&gt; became &lt;code&gt;NUMBER(11)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Text&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;varchar(n)&lt;/code&gt; became &lt;code&gt;NVARCHAR2(n)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Money&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;numeric(12,2)&lt;/code&gt; became plain &lt;code&gt;NUMBER&lt;/code&gt;, so the precision and scale were dropped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Timestamps&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;timestamp&lt;/code&gt; became &lt;code&gt;DATE&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto-numbering and defaults&lt;/td&gt;
&lt;td&gt;the generated &lt;code&gt;CREATE TABLE&lt;/code&gt; had no identity column and no defaults&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I only compared the amount sum for &lt;code&gt;transactions&lt;/code&gt;, not for &lt;code&gt;transactions_ai&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queries I used to check the transfer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On Oracle, as &lt;code&gt;navicat_test&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="s1"&gt;'customers'&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS n FROM "customers"
UNION ALL SELECT 'customers_ai', COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"customers_ai"&lt;/span&gt;
&lt;span class="k"&gt;UNION&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="s1"&gt;'transactions'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM "transactions"
UNION ALL SELECT 'transactions_ai', COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"transactions_ai"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*), SUM("amount_kes") FROM "transactions";

SELECT table_name, column_name, data_type
FROM user_tab_columns
WHERE data_type = 'DATE' OR data_type LIKE 'TIMESTAMP%'
ORDER BY table_name, column_name;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Postgres, for the source side:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="s1"&gt;'customers'&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM customers
UNION ALL SELECT 'customers_ai', COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt;
&lt;span class="k"&gt;UNION&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="s1"&gt;'transactions'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM transactions
UNION ALL SELECT 'transactions_ai', COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions_ai&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;numeric_precision&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;numeric_scale&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;character_maximum_length&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;information_schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;table_schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'customers'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'customers_ai'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'transactions'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'transactions_ai'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ordinal_position&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The timestamp failure
&lt;/h3&gt;

&lt;p&gt;The first transfer loaded only &lt;code&gt;transactions&lt;/code&gt;. For &lt;code&gt;customers&lt;/code&gt;, Navicat generated inserts like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;TO_DATE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'2026-11-08 06:42:11.182712'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'SYYYY-MM-DD HH24:MI:SS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Oracle rejected the first row with ORA-01830, because the format stops at seconds while the value carries microseconds. The inserts ran as one block, so that single error rolled back all 8 rows. &lt;code&gt;transactions&lt;/code&gt; loaded because its &lt;code&gt;txn_date&lt;/code&gt; is a plain date with no fractional seconds. The other two tables showed as terminated, with no error text I could read.&lt;/p&gt;

&lt;p&gt;The Data Transfer options matter here. By default it drops and recreates the target tables, so any column type I fixed by hand in Oracle was lost on the next run. With drop unticked and continue-on-error ticked, the run still attempted the create step and logged ORA-00955 (name already used), which is harmless. The &lt;code&gt;TO_DATE&lt;/code&gt; error came back for &lt;code&gt;customers&lt;/code&gt; on those runs.&lt;/p&gt;

&lt;p&gt;I first tried changing the Oracle columns to hold fractional seconds. That alone did not get the &lt;code&gt;customers&lt;/code&gt; rows through:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"customers"&lt;/span&gt; &lt;span class="no"&gt;MODIFY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"created_at"&lt;/span&gt; &lt;span class="kt"&gt;TIMESTAMP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"customers_ai"&lt;/span&gt; &lt;span class="no"&gt;MODIFY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"created_at"&lt;/span&gt; &lt;span class="kt"&gt;TIMESTAMP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What worked was giving Navicat different source data. Run this in a Postgres query tab, not an Oracle one (I ran it against Oracle by mistake first and got ORA-02420, because &lt;code&gt;CREATE SCHEMA&lt;/code&gt; and &lt;code&gt;date_trunc&lt;/code&gt; are Postgres syntax):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;oracle_src&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;oracle_src&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt;
  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;national_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;county&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
         &lt;span class="nb"&gt;date_trunc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'second'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt;
  &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Data Transfer, I then set the source to &lt;code&gt;oracle_src&lt;/code&gt; and ticked only &lt;code&gt;customers&lt;/code&gt;. All 8 rows arrived. That means the microseconds were cut to whole seconds, which is a small loss of precision. &lt;code&gt;customers_ai&lt;/code&gt; and &lt;code&gt;transactions_ai&lt;/code&gt; loaded in full on the later runs, and I did not work out why &lt;code&gt;customers_ai&lt;/code&gt; avoided the same error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keys
&lt;/h3&gt;

&lt;p&gt;The Postgres source has a primary key on each of the four tables and one foreign key, from &lt;code&gt;transactions&lt;/code&gt; to &lt;code&gt;customers&lt;/code&gt;. This is how the keys turned out on Oracle, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;First run:&lt;/strong&gt; no primary or foreign keys on any Oracle table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Later run:&lt;/strong&gt; the log shows Navicat adding keys as a separate &lt;code&gt;ALTER TABLE ... ADD CONSTRAINT&lt;/code&gt; step after the data. That step failed with ORA-02260 (table can have only one primary key), which suggests a key was already there from an earlier run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Final check from ADMIN:&lt;/strong&gt; &lt;code&gt;customers&lt;/code&gt;, &lt;code&gt;customers_ai&lt;/code&gt; and &lt;code&gt;transactions_ai&lt;/code&gt; had primary keys, &lt;code&gt;transactions&lt;/code&gt; had none, and none of the four tables had a foreign key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manual repair:&lt;/strong&gt; I added the missing &lt;code&gt;transactions&lt;/code&gt; key by hand before the synchronization tests below.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are the queries I used to compare. &lt;code&gt;user_constraints&lt;/code&gt; only lists the logged-in user's own constraints, so from ADMIN I used &lt;code&gt;dba_constraints&lt;/code&gt; and filtered by owner:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Postgres&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;conrelid&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regclass&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;conname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contype&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;pg_get_constraintdef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;def&lt;/span&gt;
&lt;span class="nc"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_constraint&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;connamespace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regnamespace&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;contype&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'p'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'f'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Oracle, as navicat_test&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraint_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraint_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r_constraint_name&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;user_constraints&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;constraint_type&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'P'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'R'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Oracle, as ADMIN&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraint_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraint_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;dba_constraints&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'NAVICAT_TEST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'NAVICAT_TARGET'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;constraint_type&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'P'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'R'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraint_type&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Data Masking on Oracle
&lt;/h3&gt;

&lt;p&gt;I ran Navicat's Hashing technique on &lt;code&gt;full_name&lt;/code&gt; in &lt;code&gt;customers_ai&lt;/code&gt;. It failed with &lt;code&gt;PLS-00927: bind variable 'full_name' was not used&lt;/code&gt; and &lt;code&gt;ORA-03066: invalid PL/SQL expression&lt;/code&gt;, after about 68 seconds, so the SQL Navicat generated for Oracle was not valid. The same masking tool worked on Postgres earlier. I did not try the other masking techniques on Oracle, so I cannot say whether the problem is specific to Hashing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Oracle to Oracle: generation and synchronization
&lt;/h2&gt;

&lt;p&gt;Data Generation, Structure Synchronization and Data Synchronization all worked on Oracle. I compared two Oracle schemas for the synchronization tests, because Structure Synchronization offered only same-engine targets in my build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Generation
&lt;/h3&gt;

&lt;p&gt;Data Generation filled an Oracle table with 1000 rows and 0 errors, but it was far slower than the local Postgres run. Navicat reported 0.00186 seconds on Postgres. On Oracle the window showed &lt;code&gt;06:14.974&lt;/code&gt;, which I read as 6 minutes 15 seconds. The target is a cloud database reached from Nairobi, which is a likely factor, but I did not test that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;gen_test&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;          &lt;span class="no"&gt;NUMBER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;full_name&lt;/span&gt;   &lt;span class="no"&gt;VARCHAR2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;county&lt;/span&gt;      &lt;span class="no"&gt;VARCHAR2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;amount_kes&lt;/span&gt;  &lt;span class="no"&gt;NUMBER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt;  &lt;span class="kt"&gt;TIMESTAMP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I refreshed the tree, opened Data Generation on &lt;code&gt;gen_test&lt;/code&gt;, and asked for 1000 rows. The log showed the run inside one transaction with a begin and a commit, then "Finished successfully". The &lt;code&gt;TIMESTAMP(6)&lt;/code&gt; column generated without the date-format error that broke the transfer. Reading the rows back took 2.777 seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM gen_test;
SELECT * FROM gen_test FETCH FIRST 5 ROWS ONLY;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Setting up two Oracle schemas
&lt;/h3&gt;

&lt;p&gt;Structure Synchronization only listed targets of the same engine as the source. With a Postgres source, the target side showed only Postgres, and with an Oracle source it showed only Oracle. Navicat's &lt;a href="https://navicat.com/products/navicat-premium-feature-matrix" rel="noopener noreferrer"&gt;feature matrix&lt;/a&gt; labels only Data Transfer as working across server types, and lists the two synchronization tools without that label, which fits what I saw for Structure Synchronization. I did not check the target list for Data Synchronization.&lt;/p&gt;

&lt;p&gt;So I built a second Oracle schema to compare against. In Database Actions as ADMIN, with your own password typed without the angle brackets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt; &lt;span class="no"&gt;IDENTIFIED&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;your password&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="no"&gt;DWROLE&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt; &lt;span class="no"&gt;QUOTA&lt;/span&gt; &lt;span class="no"&gt;UNLIMITED&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="no"&gt;DATA&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I added a second connection, &lt;code&gt;Oracle_navicat_target&lt;/code&gt;, with the same wallet and &lt;code&gt;_low&lt;/code&gt; alias and the new user. Then I ran Data Transfer from &lt;code&gt;Oracle_navicat_test&lt;/code&gt; to &lt;code&gt;Oracle_navicat_target&lt;/code&gt;, ticking only &lt;code&gt;transactions&lt;/code&gt;. It moved 200 records with 0 errors in 21.681 seconds. In the target, as &lt;code&gt;navicat_target&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*), SUM("amount_kes") FROM "transactions";
SELECT column_name, data_type, data_precision, data_scale
FROM user_tab_columns WHERE LOWER(table_name) = 'transactions' ORDER BY column_id;
SELECT constraint_name, constraint_type FROM user_constraints
WHERE LOWER(table_name) = 'transactions';
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The target held 200 rows and a sum of 5121876.44, matching the source. The columns came through as &lt;code&gt;NUMBER(11,0)&lt;/code&gt;, &lt;code&gt;NUMBER&lt;/code&gt;, &lt;code&gt;NVARCHAR2&lt;/code&gt; and &lt;code&gt;DATE&lt;/code&gt;, and the structure comparison later showed no differences in any of them. The constraint query returned only check constraints and no primary key.&lt;/p&gt;

&lt;p&gt;Data Synchronization matches rows by key, so I added a primary key to the table in both schemas, once as &lt;code&gt;navicat_test&lt;/code&gt; and once as &lt;code&gt;navicat_target&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"transactions"&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="s2"&gt;"transactions_pkey"&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"txn_id"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Structure Synchronization on Oracle
&lt;/h3&gt;

&lt;p&gt;Structure Synchronization added the new column correctly, but Navicat pre-ticked two deletions on the target that I had to untick by hand. In the source I added a column:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"transactions"&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"channel"&lt;/span&gt; &lt;span class="no"&gt;VARCHAR2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I compared &lt;code&gt;NAVICAT_TEST&lt;/code&gt; (source) with &lt;code&gt;NAVICAT_TARGET&lt;/code&gt; (target). The screen listed one table to modify, &lt;code&gt;transactions&lt;/code&gt;, and four to create, which were the tables that exist only in the source. I ticked none of the four. Inside &lt;code&gt;transactions&lt;/code&gt;, Navicat showed &lt;code&gt;channel&lt;/code&gt; as an addition. It also pre-ticked two red-X rows that would drop two system-named check constraints found only on the target, so I unticked them and left only &lt;code&gt;channel&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The Deployment Script tab stayed empty until I clicked Next, which was confusing. The script then read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"NAVICAT_TARGET"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"transactions"&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"channel"&lt;/span&gt; &lt;span class="no"&gt;VARCHAR2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="no"&gt;BYTE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="no"&gt;VISIBLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The run reported 1 of 1 successful, 0 errors, 0.718 seconds. I confirmed the column in the target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data_length&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;user_tab_columns&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="nb"&gt;LOWER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'transactions'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="nb"&gt;LOWER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'channel'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It returned &lt;code&gt;channel&lt;/code&gt;, &lt;code&gt;VARCHAR2&lt;/code&gt;, 20.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Synchronization on Oracle
&lt;/h3&gt;

&lt;p&gt;Data Synchronization found exactly the one row I changed and applied it correctly. In the source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="s2"&gt;"transactions"&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="s2"&gt;"txn_type"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'sync_test'&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s2"&gt;"txn_id"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;COMMIT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The comparison for &lt;code&gt;transactions&lt;/code&gt; showed 0 to insert, 1 to update, 0 to delete and 199 identical. I ran it, then checked the target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="s2"&gt;"txn_id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"txn_type"&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"transactions"&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="s2"&gt;"txn_id"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*), SUM("amount_kes") FROM "transactions";
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The row showed &lt;code&gt;sync_test&lt;/code&gt;, the count was still 200 and the sum was still 5121876.44. I added the primary key on both sides before comparing, so I did not test what Navicat does without one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Postgres to MySQL HeatWave on Oracle Cloud
&lt;/h2&gt;

&lt;p&gt;MySQL HeatWave sits in a private network, so I reached it through a small jump host and Navicat's SSH tunnel. Once connected, Data Transfer, Structure Synchronization, Data Synchronization and Data Masking all finished with 0 errors. The transfer kept the primary keys and the foreign key, but it turned the &lt;code&gt;SERIAL&lt;/code&gt; columns into plain integers and dropped the &lt;code&gt;now()&lt;/code&gt; default.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting up MySQL HeatWave and a jump host
&lt;/h3&gt;

&lt;p&gt;Each Oracle Cloud tenancy can have one Always Free MySQL HeatWave DB system in its home region (&lt;a href="https://docs.oracle.com/iaas/mysql-database/doc/features-mysql-heatwave-service.html" rel="noopener noreferrer"&gt;Oracle docs&lt;/a&gt;). It is a 1 ECPU MySQL node with 50 GB of storage and 50 GB of backup storage (&lt;a href="https://blogs.oracle.com/mysql/post/introducing-heatwave-always-free" rel="noopener noreferrer"&gt;Oracle announcement&lt;/a&gt;). It can also have a free single-node HeatWave cluster, which none of my tests used. The free VM options are two AMD micro instances with 1/8 OCPU and 1 GB of memory each, plus Ampere Arm instances (&lt;a href="https://docs.oracle.com/iaas/Content/FreeTier/resourceref.htm" rel="noopener noreferrer"&gt;Oracle docs&lt;/a&gt;). Pick the option labelled Always Free or Always Free-eligible in each form, because other shapes are billed by the hour. These are the Always Free limits in Oracle's documentation when I tested, so check the current limits and your eligibility in your own tenancy before you create anything.&lt;/p&gt;

&lt;p&gt;The database has no public IP address, so the path from your laptop is: Navicat, SSH on port 22 to a jump host in the public subnet, then TCP 3306 to the database in the private subnet. Values in angle brackets below are placeholders for your own.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create the network.&lt;/strong&gt; In the OCI console open Virtual Cloud Networks and start the VCN Wizard. Choose "Create VCN with Internet Connectivity", name it &lt;code&gt;&amp;lt;VCN_NAME&amp;gt;&lt;/code&gt; and keep the default ranges: VCN &lt;code&gt;10.0.0.0/16&lt;/code&gt;, public subnet &lt;code&gt;10.0.0.0/24&lt;/code&gt;, private subnet &lt;code&gt;10.0.1.0/24&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let the public subnet reach MySQL.&lt;/strong&gt; Open the private subnet, then its security list, and add an ingress rule: stateful, source type CIDR, source &lt;code&gt;10.0.0.0/24&lt;/code&gt;, protocol TCP, destination port 3306. This allows the whole public subnet, which is what I used for my throwaway test. Once the jump host exists (step 4), it is safer to replace the source with the jump host's private IP followed by &lt;code&gt;/32&lt;/code&gt;, which its Details page shows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create the DB system.&lt;/strong&gt; Under Databases, MySQL HeatWave, DB Systems, click Create DB System and choose the Always Free option. Set an administrator username and password and store them safely. For networking choose your VCN and the private subnet. When the state is Active, open the Endpoints tab and note the private IP, which I call &lt;code&gt;&amp;lt;DB_PRIVATE_IP&amp;gt;&lt;/code&gt;, and port 3306.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create the jump host.&lt;/strong&gt; Under Compute, Instances, click Create instance. I chose Oracle Linux 9, whose SSH user is &lt;code&gt;opc&lt;/code&gt;. Click Change shape, then Specialty and previous generation, and pick &lt;code&gt;VM.Standard.E2.1.Micro&lt;/code&gt;, which carries the Always Free-eligible badge. Let OCI generate a key pair and click Save Private Key, because it is not shown again. Put the VM in the public subnet with a public IPv4 address, which I call &lt;code&gt;&amp;lt;JUMP_HOST_PUBLIC_IP&amp;gt;&lt;/code&gt;. Also check the public subnet's security list, because the wizard's default rules may allow SSH from any address. If you can, limit port 22 to your own public IP, and update it when your IP changes, for example when you switch from Wi-Fi to mobile data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock down the key and test SSH&lt;/strong&gt; from your machine:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod 400 ~/Downloads/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;KEY_FILE&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
ssh -i ~/Downloads/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;KEY_FILE&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; opc@&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;JUMP_HOST_PUBLIC_IP&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My SSH client warned that the connection was not using a post-quantum key exchange, and the login still worked.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check the database port from the jump host.&lt;/strong&gt; This uses a Bash built-in, so nothing needs installing:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;timeout 5 bash -c &lt;span class="s1"&gt;'&amp;lt;/dev/tcp/&amp;lt;DB_PRIVATE_IP&amp;gt;/3306'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; open &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; closed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It printed &lt;code&gt;open&lt;/code&gt;. If yours prints &lt;code&gt;closed&lt;/code&gt;, recheck the ingress rule from step 2.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create the Navicat connection.&lt;/strong&gt; Choose MySQL. On the General tab enter host &lt;code&gt;&amp;lt;DB_PRIVATE_IP&amp;gt;&lt;/code&gt;, port 3306 and your administrator user and password. On the SSH tab tick Use SSH tunnel, enter host &lt;code&gt;&amp;lt;JUMP_HOST_PUBLIC_IP&amp;gt;&lt;/code&gt;, port 22, user &lt;code&gt;opc&lt;/code&gt;, authentication method Public Key, and pick your key file with the &lt;code&gt;...&lt;/code&gt; button. Leave the passphrase empty. On the Advanced tab I ticked Keepalive Interval and set it to 240 seconds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After I confirmed the dialogs, the connection opened and listed &lt;code&gt;information_schema&lt;/code&gt;, &lt;code&gt;mysql&lt;/code&gt;, &lt;code&gt;mysql_audit&lt;/code&gt;, &lt;code&gt;mysql_option&lt;/code&gt;, &lt;code&gt;mysql_tasks&lt;/code&gt;, &lt;code&gt;performance_schema&lt;/code&gt; and &lt;code&gt;sys&lt;/code&gt;. Running &lt;code&gt;SELECT VERSION(), CURRENT_USER();&lt;/code&gt; returned the server version &lt;code&gt;26.10.0-u1-cloud&lt;/code&gt; and &lt;code&gt;ADMIN@%&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Four things confused me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Testing the connection before turning on the tunnel failed with &lt;code&gt;2002 - Can't connect to MySQL server on '&amp;lt;DB_PRIVATE_IP&amp;gt;' (110)&lt;/code&gt;. A private IP cannot be reached from your laptop, so this error is expected until the SSH tab is set.&lt;/li&gt;
&lt;li&gt;Navicat displayed a key passphrase prompt even though my key has none. It was an unencrypted RSA key (the file starts with &lt;code&gt;BEGIN RSA PRIVATE KEY&lt;/code&gt;) that plain &lt;code&gt;ssh&lt;/code&gt; accepted. I left the field empty and confirmed, and the connection opened. I do not know why it prompted. A later password prompt looked like Ubuntu unlocking its login keyring for the saved connection password, though I did not confirm that.&lt;/li&gt;
&lt;li&gt;After I had been away for a while, Test Connection timed out connecting to the jump host, while plain &lt;code&gt;ssh&lt;/code&gt; from the terminal worked a few minutes later. I cannot tell the cause. The 240 second keepalive should reduce idle drops, but I have not proved that it prevents them.&lt;/li&gt;
&lt;li&gt;The tunnel is Navicat's own, so nothing runs when Navicat is closed. If it keeps dropping for you, a tunnel started from your own terminal is the fallback.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Creating the test schemas and user
&lt;/h3&gt;

&lt;p&gt;I ran this as the administrator. Use your own fake password in place of the placeholder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;USER&lt;/span&gt; &lt;span class="s1"&gt;'navicat_user'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt; &lt;span class="no"&gt;IDENTIFIED&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;FAKE_PASSWORD&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="no"&gt;PRIVILEGES&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="s1"&gt;'navicat_user'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="no"&gt;PRIVILEGES&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="s1"&gt;'navicat_user'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="no"&gt;GRANTS&lt;/span&gt; &lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="s1"&gt;'navicat_user'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;SHOW GRANTS&lt;/code&gt; returned three rows: &lt;code&gt;USAGE&lt;/code&gt; on &lt;code&gt;*.*&lt;/code&gt; and &lt;code&gt;ALL PRIVILEGES&lt;/code&gt; on each of the two schemas. The &lt;code&gt;'%'&lt;/code&gt; host is acceptable here because the DB system is only reachable from inside the private subnet.&lt;/p&gt;

&lt;p&gt;I then duplicated the connection to log in as the new user. My first attempt still connected as &lt;code&gt;ADMIN&lt;/code&gt;, because I had not changed the User Name field and the saved administrator password was still in place. This is how I caught it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;CURRENT_USER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After I changed the user and retyped the password, it returned &lt;code&gt;navicat_user@%&lt;/code&gt;, and the sidebar listed only &lt;code&gt;information_schema&lt;/code&gt;, &lt;code&gt;navicat_target&lt;/code&gt;, &lt;code&gt;navicat_test&lt;/code&gt; and &lt;code&gt;performance_schema&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Transfer from Postgres
&lt;/h3&gt;

&lt;p&gt;First I recorded the Postgres source, so I could check the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;column_default&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;information_schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;table_schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'customers'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'transactions'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ordinal_position&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;conrelid&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regclass&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contype&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;pg_get_constraintdef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;def&lt;/span&gt;
&lt;span class="nc"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_constraint&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;connamespace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regnamespace&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM customers) AS customers,
       (SELECT COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;sum_amount_kes&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The source had 13 columns across the two tables, &lt;code&gt;SERIAL&lt;/code&gt; ids with &lt;code&gt;nextval(...)&lt;/code&gt; defaults, a &lt;code&gt;created_at&lt;/code&gt; timestamp with a &lt;code&gt;now()&lt;/code&gt; default, primary keys on both tables and a foreign key from &lt;code&gt;transactions&lt;/code&gt; to &lt;code&gt;customers&lt;/code&gt;. The counts were 8 customers, 200 transactions and a sum of 5121876.44.&lt;/p&gt;

&lt;p&gt;In Tools, Data Transfer, I set the source to &lt;code&gt;my-local-postgres&lt;/code&gt;, database &lt;code&gt;my_project_db&lt;/code&gt;, schema &lt;code&gt;public&lt;/code&gt;, and the target to the &lt;code&gt;navicat_user&lt;/code&gt; connection and the &lt;code&gt;navicat_test&lt;/code&gt; schema. I ticked only &lt;code&gt;customers&lt;/code&gt; and &lt;code&gt;transactions&lt;/code&gt; and left the options at their defaults. The run reported 2 objects, 208 records processed and transferred, 0 errors and 4.907 seconds. I checked the result on MySQL as &lt;code&gt;navicat_user&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM navicat_test.customers) AS customers,
       (SELECT COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;sum_amount_kes&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;navicat_test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The counts were 8 and 200 and the sum was 5121876.44, the same as Postgres. This is what &lt;code&gt;SHOW CREATE TABLE&lt;/code&gt; showed:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Postgres source&lt;/th&gt;
&lt;th&gt;MySQL result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;SERIAL&lt;/code&gt; ids&lt;/td&gt;
&lt;td&gt;plain &lt;code&gt;int NOT NULL&lt;/code&gt;, with no &lt;code&gt;AUTO_INCREMENT&lt;/code&gt; and no default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;numeric&lt;/code&gt; amount&lt;/td&gt;
&lt;td&gt;&lt;code&gt;decimal(12,2) NOT NULL&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;timestamp&lt;/code&gt; with default &lt;code&gt;now()&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;datetime&lt;/code&gt;, with the default dropped (&lt;code&gt;DEFAULT NULL&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;varchar(n)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;varchar(n)&lt;/code&gt;, lengths kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary keys&lt;/td&gt;
&lt;td&gt;kept on both tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Foreign key&lt;/td&gt;
&lt;td&gt;kept, with the same name &lt;code&gt;transactions_customer_id_fkey&lt;/code&gt;, plus an index on &lt;code&gt;customer_id&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engine and charset&lt;/td&gt;
&lt;td&gt;InnoDB, &lt;code&gt;utf8mb4&lt;/code&gt;, &lt;code&gt;utf8mb4_0900_ai_ci&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two notes. The customer fields in the MySQL copy appear as asterisks, because those values were already masked in my Postgres &lt;code&gt;customers&lt;/code&gt; table from an earlier masking run, and Data Transfer copies values as they are. And the transfer finished with 0 errors where the Oracle run failed on timestamps. I did not check whether my source timestamps had fractional seconds, so I cannot say what MySQL did with them, only that the new column is a &lt;code&gt;datetime&lt;/code&gt; without a fractional part.&lt;/p&gt;

&lt;h3&gt;
  
  
  Structure Synchronization on MySQL
&lt;/h3&gt;

&lt;p&gt;To compare two MySQL schemas, I used the same connection for both sides, with &lt;code&gt;navicat_test&lt;/code&gt; as the source and &lt;code&gt;navicat_target&lt;/code&gt; as the target. The target was empty, so the comparison listed both tables as missing. I ticked both, clicked Next, and the Deployment Script tab showed this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="no"&gt;FOREIGN_KEY_CHECKS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`customers`&lt;/span&gt;  &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`customer_id`&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`full_name`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`email`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`phone`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`national_id`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`county`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`created_at`&lt;/span&gt; &lt;span class="kt"&gt;datetime&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`customer_id`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="no"&gt;BTREE&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="no"&gt;ENGINE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;InnoDB&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="no"&gt;ROW_FORMAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dynamic&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`transactions`&lt;/span&gt;  &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`txn_id`&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`customer_id`&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`amount_kes`&lt;/span&gt; &lt;span class="kt"&gt;decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`txn_type`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`txn_date`&lt;/span&gt; &lt;span class="kt"&gt;date&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="sb"&gt;`channel`&lt;/span&gt; &lt;span class="kt"&gt;varchar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`txn_id`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="no"&gt;BTREE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="sb"&gt;`transactions_customer_id_fkey`&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`customer_id`&lt;/span&gt; &lt;span class="k"&gt;ASC&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="no"&gt;BTREE&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="no"&gt;ENGINE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;InnoDB&lt;/span&gt; &lt;span class="kt"&gt;CHARACTER&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;utf8mb4&lt;/span&gt; &lt;span class="k"&gt;COLLATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;utf8mb4_0900_ai_ci&lt;/span&gt; &lt;span class="no"&gt;ROW_FORMAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dynamic&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`transactions`&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="sb"&gt;`transactions_customer_id_fkey`&lt;/span&gt; &lt;span class="k"&gt;FOREIGN&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`customer_id`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`customers`&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`customer_id`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;RESTRICT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="k"&gt;RESTRICT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="no"&gt;FOREIGN_KEY_CHECKS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Navicat creates both tables first and adds the foreign key afterwards in a separate &lt;code&gt;ALTER TABLE&lt;/code&gt;, so the table order cannot break it. The run reported 5 of 5 statements, 0 errors and 1.518 seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Synchronization on MySQL
&lt;/h3&gt;

&lt;p&gt;My first Data Synchronization ran before the target tables existed. It finished with 0 errors, but the comparison showed "Fail to locate target table" for both tables, and the script held only the two &lt;code&gt;SET FOREIGN_KEY_CHECKS&lt;/code&gt; lines, so nothing was copied. A finished run with 0 errors does not mean any rows moved, so read the script. Run Structure Synchronization first.&lt;/p&gt;

&lt;p&gt;After the structure was deployed, the comparison offered the rows to insert. The script was one &lt;code&gt;INSERT&lt;/code&gt; per row, &lt;code&gt;customers&lt;/code&gt; first, inside a transaction. Here are the first lines of each table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`customers`&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`customer_id`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`full_name`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`email`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`phone`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`national_id`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`county`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`created_at`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'A**** W******'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'a*****w@e*********m'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'+25******0001'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'1*******'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Nairobi'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'2026-11-08 06:42:11'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="sb"&gt;`navicat_target`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`transactions`&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`txn_id`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`customer_id`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`amount_kes`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`txn_type`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`txn_date`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`channel`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;43551.81&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'payment'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'2026-01-15'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The run reported 210 of 210 statements (8 customers, 200 transactions and the two &lt;code&gt;SET&lt;/code&gt; lines), 0 errors and 5.902 seconds. I checked the target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) FROM navicat_target.customers) AS customers,
       (SELECT COUNT(*)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;sum_amount_kes&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It returned 8, 200 and 5121876.44, matching the source. The log also showed a "Success: 5" next to 210 of 210, which I cannot explain, so I do not rely on that number.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Masking on MySQL
&lt;/h3&gt;

&lt;p&gt;The customer values in my tables were already masked, so I made a small table of obviously fake rows to see the techniques at work:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;masking_demo&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;full_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;phone&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;national_id&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;navicat_target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;masking_demo&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Amina Wanjiru'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'amina.wanjiru@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'+254700000001'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'12345678'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Brian Otieno'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'brian.otieno@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'+254700000002'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'23456789'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Cynthia Mutua'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cynthia.mutua@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'+254700000003'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'34567890'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Data Masking I added four stages, one per column. The preview pane showed the input and the output for each stage before I ran anything.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Column&lt;/th&gt;
&lt;th&gt;Technique&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;full_name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Substitution (Name)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;A**** W*******&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;email&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Hashing&lt;/td&gt;
&lt;td&gt;a 32-character hex string&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;phone&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Nulling&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NULL&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;national_id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Substitution (String), preserving the first character and masking the rest with &lt;code&gt;*&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1*******&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The result is in the table itself. Masking changes the rows in place, so keep a copy of your unmasked data if you want to run it again. Hashing produced a one-way string instead of a readable email address. Predictable values such as email addresses can sometimes be guessed and matched against their hashes, so I would not treat plain hashing as enough anonymisation. The string is 32 characters of hexadecimal, but I did not check which algorithm Navicat used, so I will not name one. Nulling and substitution are the techniques that do not rely on a hash.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AI features
&lt;/h2&gt;

&lt;p&gt;Navicat's AI features work once connected, but you must supply your own model provider and API configuration. Costs, availability and output quality depend on the provider and model you choose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why a free model.&lt;/strong&gt; Frontier models such as Claude from Anthropic, Kimi from Moonshot and GPT from OpenAI typically need API keys and may incur usage charges, so I used a free Nvidia Nemotron model through OpenRouter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup.&lt;/strong&gt; The AI options list DeepSeek, Ollama and an OpenAI Compatible provider. DeepSeek needed a paid top-up, and Ollama could not connect, because I had no local server running. I used the OpenAI Compatible option with OpenRouter and a free model. The &lt;code&gt;...&lt;/code&gt; button that should list models came back empty, so I typed the model ID by hand. My first free model returned a 429 rate-limit error from its upstream provider, and a second one (Nvidia Nemotron) passed Test Connection.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an OpenRouter account and generate an API key. Keep the key private and never paste it into a post, a screenshot or a shared doc.&lt;/li&gt;
&lt;li&gt;In Navicat's AI settings, choose the OpenAI Compatible provider.&lt;/li&gt;
&lt;li&gt;Set the base URL to &lt;code&gt;https://openrouter.ai/api/v1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Paste your API key.&lt;/li&gt;
&lt;li&gt;Type the model ID by hand.&lt;/li&gt;
&lt;li&gt;Click Test Connection. A free model can answer with a 429 rate-limit error, so if one fails, try another.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What I saw once connected:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ask AI&lt;/strong&gt; wrote a county-totals query where the join, grouping and sorting were correct in my first test, but it guessed the column name &lt;code&gt;amount&lt;/code&gt; when my column is &lt;code&gt;amount_kes&lt;/code&gt;, so that query would not have run. I did not keep that first attempt, and the two queries below use the correct column. In later testing it gave me correct queries after attaching the schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explain Error&lt;/strong&gt; correctly diagnosed a duplicate-column error on &lt;code&gt;risk_score&lt;/code&gt; and suggested &lt;code&gt;ADD COLUMN IF NOT EXISTS&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The chat panel suggests SQL and does not apply it.&lt;/strong&gt; It generated an email-from-name query and a Swahili translation of transaction types as &lt;code&gt;SELECT&lt;/code&gt; statements, and my emails stayed unchanged until I ran an &lt;code&gt;UPDATE&lt;/code&gt; myself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swahili quality was weak.&lt;/strong&gt; It translated deposit as "Fedha", withdrawal as "Kuondoa" and transfer as "Badilisha", and only "Malipo" for payment looked plausible to me. That reflects the free model I chose, not Navicat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fill with AI and AI Table Designer are in the Linux build.&lt;/strong&gt; I could not find them at first, then confirmed that both are there. By prompting the AI, I also had it create a fake &lt;code&gt;employees&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because these features send your data to the model provider, I only used fake data. Do the same unless you know your provider's terms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queries from my AI testing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two county-totals queries from the Ask AI tests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- county totals, version 1&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;county&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;total_transaction_amount&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;county&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;total_transaction_amount&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- county totals, version 2&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;county&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) AS txns, round(sum(t.amount_kes), 2) AS total_kes
FROM transactions t
JOIN customers c USING (customer_id)
GROUP BY c.county
ORDER BY total_kes DESC;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The duplicate-column error that Explain Error diagnosed came from the first statement below, and the fix it suggested was the second:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="n"&gt;risk_score&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;risk_score&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The chat panel's suggestions were two &lt;code&gt;SELECT&lt;/code&gt; queries, one building an email from the name and one translating the transaction types into Swahili:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;split_part&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;'.'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;split_part&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;'@example.com'&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;txn_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;amount_kes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="nb"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;txn_type&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'deposit'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Fedha'&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'withdrawal'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Kuondoa'&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'transfer'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Badilisha'&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="s1"&gt;'payment'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Malipo'&lt;/span&gt;
        &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="n"&gt;txn_type&lt;/span&gt;
    &lt;span class="k"&gt;END&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;txn_type_swahili&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;txn_date&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions_ai&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;txn_id&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because they only read data, I checked afterwards that nothing had changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customers_ai&lt;/span&gt; &lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;DISTINCT&lt;/span&gt; &lt;span class="n"&gt;txn_type&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;transactions_ai&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I did not test
&lt;/h2&gt;

&lt;p&gt;This review covers a small, fake dataset, so treat it as a first look and not a benchmark.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Parts of MySQL.&lt;/strong&gt; I did not insert a row without an id to see what happens after the &lt;code&gt;SERIAL&lt;/code&gt; conversion, run a data sync that updates a row, add a column and sync the structure change, or check whether the source timestamps held fractional seconds. I also left the optional HeatWave cluster out of the tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parts of Oracle.&lt;/strong&gt; I tested Postgres to Oracle transfer, Oracle to Oracle transfer, Data Generation, Structure Synchronization, Data Synchronization and one masking technique. I did not test the other masking techniques on Oracle, a Data Synchronization with Oracle on one side and another engine on the other, or Oracle with real data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real or large data.&lt;/strong&gt; My biggest table had about 1,000 rows, so I have no performance numbers beyond the timings above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Other platforms and team features.&lt;/strong&gt; I used one Linux machine and no shared connections.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stronger AI models.&lt;/strong&gt; Every AI result came from one free model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Verdict
&lt;/h2&gt;

&lt;p&gt;Navicat 18 is a solid single window for masking, copying and syncing databases with clear previews, but cross-engine moves need manual checks and its AI features depend on the model you bring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It suits you if&lt;/strong&gt; you work across several database engines and want to copy, compare and sync data from one GUI, with the SQL shown before it runs. The masking tool is useful for making test copies, as long as you pick techniques by risk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Be cautious if&lt;/strong&gt; you plan cross-engine migrations. Postgres to SQLite kept the data and keys but dropped auto-numbering and defaults. Postgres to MySQL kept the keys and the foreign key but turned &lt;code&gt;SERIAL&lt;/code&gt; into a plain &lt;code&gt;int&lt;/code&gt; and dropped the &lt;code&gt;now()&lt;/code&gt; default. Postgres to Oracle mapped timestamps to &lt;code&gt;DATE&lt;/code&gt;, and the &lt;code&gt;customers&lt;/code&gt; rows failed on fractional seconds until I trimmed them at the source, and the default options rebuild the target tables on every run. Connecting to an Autonomous Database from Linux also took considerable setup, and reaching a private MySQL HeatWave database needed a jump host and an SSH tunnel, which is cloud setup and not a Navicat flaw, but plan for it. Structure Synchronization only offered same-engine targets in my build, so I compared two Oracle schemas instead of Postgres with Oracle, and Navicat pre-ticked two deletions that I had to untick, so read the script before you run it. Also be cautious if you expect the AI features to work out of the box: connecting a model took several attempts, and what you get depends on the model you bring.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>navicat</category>
      <category>mysql</category>
    </item>
    <item>
      <title>I Built an AI Financial Analyst Over 19 Years of Safaricom's History, and Here Is Everything That Broke</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sun, 30 Aug 2026 13:01:12 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/i-built-an-ai-financial-analyst-over-19-years-of-safaricoms-history-and-here-is-everything-that-49j</link>
      <guid>https://dev.to/derrickryangiggs/i-built-an-ai-financial-analyst-over-19-years-of-safaricoms-history-and-here-is-everything-that-49j</guid>
      <description>&lt;p&gt;Safaricom PLC has published financial results every year since 2008. That is 19 years of annual reports, results booklets, and press commentaries, and almost none of it is searchable in any real sense. If you want to know what M-PESA revenue looked like in FY19, you can find a number in a spreadsheet somewhere. If you want to know &lt;em&gt;why&lt;/em&gt; it grew the way it did, you are opening a 100 plus page PDF and skimming.&lt;/p&gt;

&lt;p&gt;I built a project to close that gap: a conversational assistant that can answer both kinds of questions from one place, cite its sources, and honestly say "I do not know" when it does not know.&lt;/p&gt;

&lt;p&gt;Try it here: &lt;a href="https://rag-app-1003744998459.africa-south1.run.app/" rel="noopener noreferrer"&gt;rag-app-1003744998459.africa-south1.run.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code here: &lt;a href="https://github.com/Derrick-Ryan-Giggs/safaricom-financial-rag" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/safaricom-financial-rag&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This post is less "look at my architecture diagram" and more "here is what actually went wrong while building this, and what I learned fixing it." The architecture matters, so I will cover it, but the real value of a project like this comes from the bugs, not the happy path.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually does
&lt;/h2&gt;

&lt;p&gt;Ask it something like "What was M-PESA revenue in FY2025, and how did that compare to the year before?" and it routes to BigQuery, generates SQL against the real mart tables, validates that SQL against the live schema before running it, and gives you a number.&lt;/p&gt;

&lt;p&gt;Ask it "What factors drove M-PESA growth that year?" and it switches to a hybrid search over roughly 2,100 chunks pulled from 19 years of PDFs, reranks the results, and answers with a citation like (FY19, p.3) linked straight to the source PDF.&lt;/p&gt;

&lt;p&gt;Ask it something neither source covers, and it falls back to a live web search, clearly labeled as unverified against a primary source rather than pretending it is.&lt;/p&gt;

&lt;p&gt;Three paths, one interface, and a router deciding which one a question actually needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it is put together
&lt;/h2&gt;

&lt;p&gt;The unstructured side starts with &lt;code&gt;unstructured[pdf]&lt;/code&gt; in hi_res mode, with table structure inference and Tesseract OCR, since a chunk of this corpus is scanned or image heavy investor presentations from the earliest years. Extracted elements get chunked at 500 tokens with 50 token overlap, sentence boundary aware, then embedded with an ONNX build of all-MiniLM-L6-v2 (384 dimensions, CPU only, since pulling in a GPU build of PyTorch for a project with no GPU made no sense).&lt;/p&gt;

&lt;p&gt;Retrieval is hybrid: minsearch handles keyword matching, Qdrant handles vector similarity, and the two get combined with alpha weighted Reciprocal Rank Fusion. I grid searched that alpha weight across a 6,219 question raw ground truth set and found 0.6 (leaning slightly keyword heavy) narrowly beat the naive 0.5 default on both Hit Rate and MRR at k=20. The top 20 fused candidates then go through a cross-encoder reranker before the top 10 reach the generation step, since RRF rank and actual relevance are not the same thing.&lt;/p&gt;

&lt;p&gt;Generation runs on Groq, using &lt;code&gt;openai/gpt-oss-120b&lt;/code&gt; for RAG answers, SQL generation, and web fallback synthesis, and the smaller &lt;code&gt;openai/gpt-oss-20b&lt;/code&gt; for the lightweight jobs, routing classification and answer judging during evaluation, since neither needs the bigger model's reasoning depth and the smaller model has a friendlier free tier rate limit.&lt;/p&gt;

&lt;p&gt;The whole thing sits on Streamlit, deployed on Cloud Run with min instances set to zero, so it costs close to nothing at personal demo traffic. Conversation history is Firestore backed and session isolated, which matters more than it sounds like, since Cloud Run recycles containers and a local SQLite file simply does not survive that.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part nobody puts in the architecture diagram: everything that broke
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Filenames lied about which fiscal year they were
&lt;/h3&gt;

&lt;p&gt;Safaricom's own filenames are not consistent across 19 years. Some use the starting calendar year of a fiscal year span, some use the ending year, some are two digit, some are four digit, and one 2008 era file used a single digit. Trusting the filename alone got five documents wrong, most notably three press commentaries named as if they spanned two years each, which turned out to actually be FY15, FY16, and FY17 respectively once I checked what each document's own "YEAR ENDED" statement said. I wrote a small script that checks document content against the filename derived label and only corrects the ones that actually disagree, rather than guessing on anything ambiguous.&lt;/p&gt;

&lt;p&gt;Even after that fix, the same year was being spelled multiple ways across the corpus. FY_8 and FY8 both existed for 2008. That is not a wrong year, it is an inconsistent one, and it is a much sneakier bug: an exact match filter for a specific fiscal year would silently return zero results for whichever spelling it did not happen to check, with no error thrown. It looks exactly like "no results for this year" instead of an obvious crash. Normalizing every variant to one canonical form at load time fixed it everywhere at once, retrieval, filtering, and citations included.&lt;/p&gt;

&lt;h3&gt;
  
  
  A library upgrade quietly broke hybrid search
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;qdrant-client&lt;/code&gt; 1.18 removed &lt;code&gt;.search()&lt;/code&gt; in favor of &lt;code&gt;.query_points()&lt;/code&gt;, with a renamed parameter and a response object that wraps results differently. Nothing about the retrieval logic was wrong, the client library underneath it had just moved. This is the kind of bug that only shows up the first time you actually run something against real data rather than trusting that last month's code still matches this month's dependencies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Qdrant Cloud enforces a rule a local instance does not
&lt;/h3&gt;

&lt;p&gt;Filtering on a payload field, in my case the fiscal year, worked perfectly on a local Qdrant instance and threw a 400 error the first time the exact same code ran against Qdrant Cloud. Cloud requires an explicit index on a field before you can filter on it. Local does not. Same query, genuinely different server behavior between the self hosted and managed tiers. I fixed it by creating that index as part of collection setup itself, so any future rebuild of the collection gets it automatically instead of needing a one off manual fix every time.&lt;/p&gt;

&lt;h3&gt;
  
  
  The SQL path substituted a wrong answer for a right question
&lt;/h3&gt;

&lt;p&gt;The first real query against BigQuery failed with "must be qualified with a dataset," because the model was writing bare table names and BigQuery needed either a fully qualified reference or a default dataset set on the query job. Easy fix. The more interesting discovery came right after: four of the seven mart tables named in my original project plan simply did not exist under those names. Not a typo, they were never built that way. I confirmed this with a direct schema check rather than assuming, and trimmed the SQL path down to the three tables that actually exist.&lt;/p&gt;

&lt;p&gt;That led to a subtler failure mode worth calling out specifically: a real, live case of the SQL path answering a narrow question with a broader column, a total standing in for a specific category, because the specific column it actually needed was not available. A schema validation guard that rejects hallucinated table or column names does not catch this, since the substituted column was real, just wrong for the question asked. Fixing it needed an explicit instruction telling the model not to substitute a broader metric when the specific one is missing, on top of the schema guard.&lt;/p&gt;

&lt;h3&gt;
  
  
  The headline number looked bad until I split refusals from wrong answers
&lt;/h3&gt;

&lt;p&gt;Early evaluation runs reported roughly a third of answers as "relevant," which sounds mediocre. It turned out most of those "not relevant" verdicts were the model honestly declining to answer when retrieval had not surfaced enough evidence, not the model getting something factually wrong. My first refusal detector, a set of regex patterns, undercounted these too: phrasing variations like "do not mention" instead of "does not mention" slipped straight past it as if they were substantive wrong answers. Broadening that detector and re splitting the same results, with no new model calls needed, showed the real picture: the system refuses roughly a third of the time when it genuinely lacks evidence, and is right or partly right about 97 percent of the time it actually attempts an answer.&lt;/p&gt;

&lt;p&gt;Ground truth itself was not immune either. One reference answer for "Who are the owners of Safaricom?" came back as "ESSAR Communications," which is actually a competitor named in a "Competitive Landscape" section of the source document, not an owner at all. The question generation model had misattributed a fact to the wrong entity. Caught by manually reading failure cases rather than trusting verdicts blindly, which is a habit I would recommend to anyone building an LLM evaluation pipeline: read the actual failures yourself, at least some of them, before you trust any aggregate number.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Docker layer was silently re-pushing 146MB per code change
&lt;/h3&gt;

&lt;p&gt;Any code only change, a one line fix in &lt;code&gt;retrieval/&lt;/code&gt;, was re-pushing the same roughly 146MB image layer as a full rebuild. Two compounding causes: a &lt;code&gt;.dockerignore&lt;/code&gt; entry meant to exclude raw PDFs was pointing at a directory structure that did not actually exist in this repo, so it excluded nothing, and a single blanket &lt;code&gt;COPY . .&lt;/code&gt; in the Dockerfile meant any file change invalidated one giant layer containing source code, roughly 2,100 embedded chunks, the ONNX model, and the (supposedly excluded) raw PDFs all bundled together. Splitting that into explicit per directory COPY instructions means a source only change now only rebuilds and re-pushes that one small directory's layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reranking improved answers and then quietly started crashing the container
&lt;/h3&gt;

&lt;p&gt;Adding a cross-encoder reranker on top of the existing embedding model meant two ONNX models living in the same process. Shortly after that shipped, Cloud Run's error dashboard started showing "Memory limit of 2048 MiB exceeded with 2249 MiB used" on the production service. Nothing about the code was wrong, the container simply needed more headroom than it used to. Bumped the memory limit, watched the errors clear.&lt;/p&gt;

&lt;h3&gt;
  
  
  The freshest one: a PDF table extraction bug that survived a prompt fix
&lt;/h3&gt;

&lt;p&gt;This is the one I was still debugging as I wrote this post, and it is a good example of a lesson worth its own paragraph: a well written system prompt can only patch a symptom, it cannot retrieve information that genuinely was not captured correctly.&lt;/p&gt;

&lt;p&gt;A question about FY23's net taxation payable kept coming back wrong, first citing a completely different line item's number, then, after I tightened the RAG system prompt to be more careful about ambiguous tables, citing a &lt;em&gt;different&lt;/em&gt; wrong line item instead of the right one. Both times, a real number from the source table, just the wrong row.&lt;/p&gt;

&lt;p&gt;The actual root cause: the PDF extraction step already computes a properly structured version of every table it detects, row by row, cell by cell, since table structure inference was already turned on. But the code reading that output was using the plain linearized text version instead, which for tables with a certain visual layout reads all the row labels first and all the numeric values second, with nothing left to tie a specific label to its specific value. The fix was not a prompt at all, it was reading the structured table representation that had been computed and discarded all along, and reconstructing each row properly before it ever reaches embedding. Prompt engineering is a real and useful tool, but it cannot fix a chunk that never had the right information paired together in the first place.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers actually say
&lt;/h2&gt;

&lt;p&gt;Grid searching the hybrid search weighting across a large raw ground truth set found alpha 0.6 as the best keyword versus vector balance, narrowly ahead of an even 0.5 split, measured on Hit Rate and MRR at k=20 to match the actual width of the candidate pool the reranker sees in production.&lt;/p&gt;

&lt;p&gt;Before this round of retrieval improvements, running the full pipeline against 500 held out questions and judging the answers against reference answers showed refusals at just under a third of all questions, meaning the system declined to answer roughly that often when it genuinely lacked evidence rather than guessing. Of the questions it did attempt, 97 percent were judged at least partially correct, with under 3 percent genuinely wrong.&lt;/p&gt;

&lt;p&gt;A fresh, larger evaluation against the current pipeline, alpha tuning, reranking, and fiscal year filtering all included, is running now against an expanded 1,000 question benchmark. It has already caught the table extraction bug above mid run, which is honestly the best possible outcome for an evaluation harness: finding a real bug instead of just producing a score.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still not great, on purpose stated plainly
&lt;/h2&gt;

&lt;p&gt;The reranker is a generic model, not tuned to financial document language, and several fiscal years reuse near identical marketing phrasing that can crowd out more useful, differently worded chunks in the same top 10. The BigQuery mart tables only cover a subset of the full 19 year range with some years incomplete. The web search fallback is intentionally the least trustworthy path and says so in its own answers. None of these are hidden. A project like this is more useful with its limitations stated than with them quietly smoothed over.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it this way
&lt;/h2&gt;

&lt;p&gt;Financial history should not require choosing between a spreadsheet with no context and a stack of PDFs with no search. Structured data is good at the "what," annual report narrative is good at the "why," and a single assistant that knows which one to reach for, and knows when to admit neither one has the answer, is more useful than either alone.&lt;/p&gt;

&lt;p&gt;If you want to see it live, ask it something: &lt;a href="https://rag-app-1003744998459.africa-south1.run.app/" rel="noopener noreferrer"&gt;rag-app-1003744998459.africa-south1.run.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to see how it is actually built, including the parts covered above: &lt;a href="https://github.com/Derrick-Ryan-Giggs/safaricom-financial-rag" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/safaricom-financial-rag&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>googlecloud</category>
      <category>python</category>
      <category>ai</category>
    </item>
    <item>
      <title>My Data Pipeline Caught an AI Fabricating a Source. Here's What 19 Years of Safaricom's Financial Data Taught Me About Trust.</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Tue, 18 Aug 2026 16:50:03 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/my-data-pipeline-caught-an-ai-fabricating-a-source-heres-what-19-years-of-safaricoms-financial-2ebe</link>
      <guid>https://dev.to/derrickryangiggs/my-data-pipeline-caught-an-ai-fabricating-a-source-heres-what-19-years-of-safaricoms-financial-2ebe</guid>
      <description>&lt;p&gt;Partway through building a data pipeline on Safaricom's public financial disclosures, one of my own extraction passes handed me two numbers for Ethiopia's EBIT loss, and a citation to back them up. The citation credited the quote to Reuters and CNBC Africa.&lt;/p&gt;

&lt;p&gt;Neither outlet had ever said it.&lt;/p&gt;

&lt;p&gt;The numbers were wrong, and something along the way had generated a source to make the wrong numbers look confirmed. That single moment taught me more about data engineering than the rest of the project combined, and it's the reason this post exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually built
&lt;/h2&gt;

&lt;p&gt;Safaricom PLC, Kenya's largest telecom operator and the company behind M-PESA, publishes some of the most detailed segment-level financial disclosures of any company in East Africa. The problem is that all of it lives in disconnected PDFs. Results booklets, narrative press releases, full annual reports, each with its own structure, spanning nearly two decades of inconsistent reporting formats. Want to know how M-PESA's share of total revenue has changed since its 2007 launch, or how Ethiopia's losses compare to Kenya's own early years? That means opening a dozen-plus documents and transcribing numbers by hand, every single time.&lt;/p&gt;

&lt;p&gt;I built Safaricom Intelligence to turn 19 years of that history, FY2008 through FY2026, into a versioned, queryable BigQuery dataset that refreshes automatically every week, with a dbt transformation layer and a public Looker Studio dashboard sitting on top.&lt;/p&gt;

&lt;p&gt;The stack, for anyone curious about the plumbing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terraform&lt;/strong&gt; provisions everything on GCP: a GCS bucket for raw files, and BigQuery datasets for raw, staging and mart layers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Airflow&lt;/strong&gt; (2.9.2, running in Docker) handles orchestration, one DAG for the one-time historical backfill and a second that checks Safaricom's investor relations page every Monday morning for a new results booklet&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pdfplumber&lt;/strong&gt; does the actual PDF extraction, using layout-aware text extraction so column spacing survives well enough for regex matching against the booklet's fairly consistent template&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dbt Cloud&lt;/strong&gt;, on the newer Fusion engine, handles every transformation and every test&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Looker Studio&lt;/strong&gt; serves the finished dashboard: three pages covering M-PESA growth, revenue mix, and a Kenya vs Ethiopia comparison&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Worth being upfront about that second item: the actual cadence here doesn't need a scheduler this heavy, a cron job would do. Safaricom only publishes results twice a year, so the scraper DAG spends 50-plus of its 52 weekly runs short-circuiting to nothing. Airflow's used here deliberately, to demonstrate DAG design, custom Docker images, and orchestration patterns that would matter at higher pipeline volume, not because this specific workload needs a scheduler at all.&lt;/p&gt;

&lt;p&gt;That's the pipeline. The more interesting part is what happened once real, messy, human-written financial disclosures met an actual test suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it actually got hard
&lt;/h2&gt;

&lt;p&gt;Building the pipeline was the easy part. Trusting it wasn't. Several numbers that looked completely fine sitting on their own turned out to be wrong once I checked them against a primary source, and a few of the failure modes are worth naming specifically, because none of them would show up if you only glanced at the data.&lt;/p&gt;

&lt;p&gt;One early seed file had three fields for the earliest year that were byte-for-byte identical to the most recent year's figures. One of those fields tracked Fuliza, the overdraft product, which did not exist yet in that earliest year. The tell wasn't a broken pipeline. It was a number that was too clean, sitting somewhere it had no business being.&lt;/p&gt;

&lt;p&gt;A BigQuery table had two columns silently appended to the end of its schema instead of sitting in their intended positions, because BigQuery only allows adding columns to the end of an existing table, never inserting them in the middle, and the load job wasn't passing an explicit schema. Every load after that point quietly mapped values into the wrong column. Nothing crashed. Every load technically succeeded. The pipeline was fully green and fully wrong at the same time, which is a much scarier failure mode than an error message.&lt;/p&gt;

&lt;p&gt;And then there's the fabricated citation. A later re-extraction attempt produced a different pair of Ethiopia loss figures, backed by a quote credited to Reuters and CNBC Africa. Checking that citation against the actual wire coverage, both of those outlets, plus two other independent financial sources, all quoting the same earnings call, confirmed a completely different pair of numbers. The fabricated version got rejected. The wire-confirmed one stayed.&lt;/p&gt;

&lt;p&gt;That last one is really the point of this whole post. A wrong number is a bug. A wrong number wearing a real news outlet's name as a source is a trap, because it looks more trustworthy than an honest gap, not less. The only reason it got caught is that the project ran on a standing rule: verify against primary sources in order of reliability, press release first, then the results booklet, then the annual report's actual segment note, and never accept a number just because it arrived with a citation already attached to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the data actually says
&lt;/h2&gt;

&lt;p&gt;Once the pipeline was trustworthy, the numbers told a genuinely good story.&lt;/p&gt;

&lt;p&gt;M-PESA launched generating roughly KES 0.37 billion in its first partial year. By FY2026 it's a business worth over KES 180 billion, and M-PESA revenue alone now makes up roughly 45.6 percent of Safaricom Kenya's entire service revenue. That's not a side product anymore. That's most of the company.&lt;/p&gt;

&lt;p&gt;M-PESA revenue trend from FY2008 to FY2026, climbing from near zero to over KES 180 billion, with the steepest acceleration visible from FY2022 onward&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo6b5v4jme7s5itfqz5xa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo6b5v4jme7s5itfqz5xa.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Voice revenue tells the opposite story, and it's not a gradual one. It actually declined in absolute shilling terms during FY2020 and FY2021, a real, Safaricom-confirmed effect of COVID cutting call volumes at exactly the moment data usage was spiking. The pivot toward data and M-PESA wasn't a slow drift. It got accelerated by a specific two-year shock, and it's visible directly in the numbers: watch the blue voice-revenue line dip right as the M-PESA and mobile-data bars keep climbing.&lt;/p&gt;

&lt;p&gt;Revenue mix by segment from FY2008 to FY2026: voice revenue (blue line) dips during FY2020–21 while M-PESA (green) and mobile data (purple) bars keep growing, with M-PESA overtaking voice as the dominant segment&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl1uo1451233lqba7s3uk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl1uo1451233lqba7s3uk.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ethiopia is the most interesting chart on the whole dashboard, because the shape matters more than any single figure. Safaricom's Ethiopian unit didn't lose money at a steady, improving rate. It got worse before it got better. A loss of 5.1 billion shillings, then 30.7 billion, then 59.6 billion, then a trough of 61.1 billion, before nearly halving to 30.1 billion in the most recent year. That's a textbook market-entry J-curve, and most casual commentary on whether the Ethiopia bet is working doesn't wait long enough in the data to actually see the turn.&lt;/p&gt;

&lt;p&gt;Ethiopia's path to profitability: EBIT loss widening from -5.1bn in FY22 to a -61.1bn trough in FY24, then narrowing to -30.1bn in FY26&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhvgnnioojhn605e9g8xf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhvgnnioojhn605e9g8xf.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The capex trend backs up the same story from a different angle. Ethiopia's capital spend peaked well above Kenya's in the early build-out years and has been pulling back steadily since, right alongside the narrowing losses, while Kenya's own capex has kept climbing:&lt;/p&gt;

&lt;p&gt;Capital expenditure, Kenya vs Ethiopia, FY22 to FY26: Ethiopia's capex peaks early and tapers off while Kenya's climbs steadily higher&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64ib07oisipj7j96w9t0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64ib07oisipj7j96w9t0.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The discipline that made any of this trustworthy
&lt;/h2&gt;

&lt;p&gt;A few practices did most of the work, and none of them are complicated.&lt;/p&gt;

&lt;p&gt;Every growth and margin figure in the dashboard is computed independently in SQL, using window functions on the raw disclosed numbers, rather than copying the percentages Safaricom prints in its own booklets. That single decision is what made automated reconciliation possible at all. Two dbt tests specifically check that different tables' overlapping figures actually agree with each other, and both of them caught real, confirmed errors during development, not false positives.&lt;/p&gt;

&lt;p&gt;For the earliest, hardest-to-source years, every figure went through two fully independent extraction passes, diffed against each other before being trusted. Disagreements got resolved by going back to the literal printed label next to a number in the source PDF, not by picking whichever value looked more plausible.&lt;/p&gt;

&lt;p&gt;And a decent chunk of the known limitations in this project are deliberate blanks. A calculated connectivity total is left blank for years where its components are incomplete, rather than summed anyway and silently understated. An honest gap in a dataset is a feature. A confident, wrong number is the actual risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters more than the pipeline
&lt;/h2&gt;

&lt;p&gt;Airflow, dbt, Terraform, BigQuery, none of that is the interesting part anymore. Plenty of tutorials will teach you the wiring. What's harder to teach, and what actually separates a real data engineer from someone who can follow a setup guide, is the instinct to distrust a number that looks too clean, to check a citation instead of accepting it, and to build tests that catch exactly the kind of quiet, well-formatted failure that a schema drift or a fabricated source produces.&lt;/p&gt;

&lt;p&gt;That instinct matters more now than it did a few years ago, not less. The easier it gets to generate a plausible-looking number with a plausible-looking source attached, the more valuable it is to be the person who checks anyway.&lt;/p&gt;

&lt;p&gt;The live dashboard and the full repository, including the complete data quality log documenting every one of these fixes, are linked below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live dashboard:&lt;/strong&gt; &lt;a href="https://datastudio.google.com/reporting/d1679099-7abb-4d6e-bc15-aa8beb9dfa6c" rel="noopener noreferrer"&gt;https://datastudio.google.com/reporting/d1679099-7abb-4d6e-bc15-aa8beb9dfa6c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/Derrick-Ryan-Giggs/safaricom-intelligence" rel="noopener noreferrer"&gt;https://github.com/Derrick-Ryan-Giggs/safaricom-intelligence&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you build data pipelines on messy public disclosures too, I'd love to hear what's broken on you in a way that looked fine at first glance.&lt;/p&gt;

</description>
      <category>python</category>
      <category>gcp</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Building Container Images and Container Orchestration Fundamentals</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Wed, 12 Aug 2026 13:42:50 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/building-container-images-and-container-orchestration-fundamentals-1jgp</link>
      <guid>https://dev.to/derrickryangiggs/building-container-images-and-container-orchestration-fundamentals-1jgp</guid>
      <description>&lt;p&gt;If you have spent any time around modern software development, you have heard the phrase "it works on my machine." Docker was built to kill that excuse for good. By packaging everything an application needs into a single portable unit called a &lt;strong&gt;container image&lt;/strong&gt;, Docker ensures that what runs on your laptop runs identically in staging, in CI, and in production. This post covers how container images are built, how to build them well, and how orchestration systems like Kubernetes solve the much harder problem of running them at scale.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is a Docker Container Image?
&lt;/h2&gt;

&lt;p&gt;A Docker container image is a &lt;strong&gt;lightweight, standalone, executable package&lt;/strong&gt; that includes everything needed to run an application: code, runtime, system tools, system libraries, and configuration. When you run an image, Docker creates a live instance of it called a &lt;strong&gt;container&lt;/strong&gt;, an isolated process running on the host operating system's kernel, sharing that kernel but isolated from everything else via Linux namespaces and cgroups.&lt;/p&gt;

&lt;p&gt;The critical distinction: an &lt;strong&gt;image&lt;/strong&gt; is static (think: a blueprint), while a &lt;strong&gt;container&lt;/strong&gt; is dynamic (think: a running building). You can spin up dozens of containers from a single image, each completely isolated from the others.&lt;/p&gt;




&lt;h2&gt;
  
  
  Building Images with a Dockerfile
&lt;/h2&gt;

&lt;p&gt;Images are built using a &lt;strong&gt;Dockerfile&lt;/strong&gt;, a plain text file containing a set of instructions that closely resembles how you would manually set up a server, step by step. Docker reads these instructions top to bottom and builds the image layer by layer, caching each layer for faster subsequent builds.&lt;/p&gt;

&lt;p&gt;A typical Dockerfile does the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Starts from a &lt;strong&gt;base image&lt;/strong&gt; (a pre-built starting point, such as &lt;code&gt;python:3.11-slim&lt;/code&gt; or &lt;code&gt;ubuntu:22.04&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Sets a &lt;strong&gt;working directory&lt;/strong&gt; inside the container&lt;/li&gt;
&lt;li&gt;Copies dependency definitions and installs them&lt;/li&gt;
&lt;li&gt;Copies the application source code&lt;/li&gt;
&lt;li&gt;Documents which port the application listens on&lt;/li&gt;
&lt;li&gt;Defines the command to run when the container starts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a minimal but correct example for a Python Flask application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# Use the official slim Python 3.11 base image&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; python:3.11-slim

&lt;span class="c"&gt;# Set the working directory inside the container&lt;/span&gt;
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app

&lt;span class="c"&gt;# Copy and install dependencies first (leverages layer caching)&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt; requirements.txt .
&lt;span class="k"&gt;RUN&lt;/span&gt; pip install --no-cache-dir -r requirements.txt

&lt;span class="c"&gt;# Copy application source code&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt; app.py .

&lt;span class="c"&gt;# Document the port the app listens on (informational only, does not publish it)&lt;/span&gt;
&lt;span class="k"&gt;EXPOSE&lt;/span&gt; 5000

&lt;span class="c"&gt;# Define the default startup command&lt;/span&gt;
&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;, &lt;span class="s2"&gt;"app.py"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: &lt;code&gt;EXPOSE&lt;/code&gt; does not actually publish the port to the host. It is documentation that tells Docker and developers which port the application uses. To make it accessible, you publish the port at runtime with &lt;code&gt;docker run -p 5000:5000&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Building and Tagging the Image
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build -t my-flask-app:1.0 .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-t&lt;/code&gt; flag tags the image with a name and version. Tags are critical for version management. Never rely on &lt;code&gt;latest&lt;/code&gt; in production.&lt;/p&gt;




&lt;h2&gt;
  
  
  Dockerfile Best Practices Worth Knowing in 2025
&lt;/h2&gt;

&lt;p&gt;A Dockerfile that works is easy to write. One that is efficient, secure, and maintainable in production takes more thought. Here are the practices that matter most:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Pin Your Base Image Version
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# Bad: resolves to whatever "latest" is today&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; python:latest

&lt;span class="c"&gt;# Good: reproducible builds&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; python:3.11-slim
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unpinned base images break builds silently when upstream releases change.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Order Instructions by Change Frequency
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;Docker builds images by executing each instruction in a Dockerfile sequentially, creating a distinct layer for each step, and caches these layers for reuse in subsequent builds.&lt;/cite&gt; Copy dependency files (&lt;code&gt;requirements.txt&lt;/code&gt;, &lt;code&gt;package.json&lt;/code&gt;) and install them before copying your application code. Application code changes constantly; dependencies change rarely. Keeping them in separate layers means a code change only invalidates the layers after it, not the slow dependency install layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Use Multi-Stage Builds
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;Multi-stage builds involve using multiple &lt;code&gt;FROM&lt;/code&gt; instructions within a single Dockerfile, allowing you to separate the build environment from the final runtime environment, resulting in significantly smaller images because they contain just the application and its essential runtime dependencies, not the entire compiler and SDK.&lt;/cite&gt; &lt;cite&gt;Companies implementing multi-stage builds report average image size reductions of 50 to 85%.&lt;/cite&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# Stage 1: Build&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; python:3.11 AS builder
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;COPY&lt;/span&gt; requirements.txt .
&lt;span class="k"&gt;RUN&lt;/span&gt; pip install --user -r requirements.txt

&lt;span class="c"&gt;# Stage 2: Runtime (only what is needed to run)&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; python:3.11-slim
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=builder /root/.local /root/.local
&lt;span class="k"&gt;COPY&lt;/span&gt; app.py .
&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;, &lt;span class="s2"&gt;"app.py"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Never Run as Root
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;A survey by Sysdig found that 58% of production containers still run as root, creating significant security exposures.&lt;/cite&gt; Add a non-root user and switch to it before the &lt;code&gt;CMD&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;RUN&lt;/span&gt; adduser --disabled-password appuser
&lt;span class="k"&gt;USER&lt;/span&gt; appuser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Use a &lt;code&gt;.dockerignore&lt;/code&gt; File
&lt;/h3&gt;

&lt;p&gt;Just like &lt;code&gt;.gitignore&lt;/code&gt;, a &lt;code&gt;.dockerignore&lt;/code&gt; prevents files like &lt;code&gt;.git&lt;/code&gt;, &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;.env&lt;/code&gt;, and local test data from being copied into the image, keeping it small and preventing accidental secret leakage.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Scan Your Images
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;A 2024 study found that 87% of Docker images contain at least one high or critical vulnerability&lt;/cite&gt;, making regular scanning non-negotiable. Tools like &lt;code&gt;docker scout&lt;/code&gt;, &lt;code&gt;trivy&lt;/code&gt;, and &lt;code&gt;snyk&lt;/code&gt; integrate directly into CI/CD pipelines to catch vulnerabilities before they reach production.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sharing Images: Container Registries
&lt;/h2&gt;

&lt;p&gt;Once built, images need to be shared across teams, CI systems, and deployment environments. This is done through a &lt;strong&gt;container registry&lt;/strong&gt;, essentially a web server for storing and distributing container images. Major options include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Docker Hub&lt;/strong&gt;: the default public registry, free for public images&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon Elastic Container Registry (ECR)&lt;/strong&gt;: tightly integrated with AWS ECS, EKS, and Lambda&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Artifact Registry&lt;/strong&gt;: the recommended registry for GCP workloads (supersedes Container Registry)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Container Registry (GHCR)&lt;/strong&gt;: native integration with GitHub Actions pipelines&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Azure Container Registry (ACR)&lt;/strong&gt;: native integration with AKS and Azure DevOps
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Tag your image for a registry&lt;/span&gt;
docker tag my-flask-app:1.0 ghcr.io/your-username/my-flask-app:1.0

&lt;span class="c"&gt;# Push to the registry&lt;/span&gt;
docker push ghcr.io/your-username/my-flask-app:1.0

&lt;span class="c"&gt;# Pull it on another machine&lt;/span&gt;
docker pull ghcr.io/your-username/my-flask-app:1.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Private registries support access controls, vulnerability scanning, and image signing, all critical for production workflows.&lt;/p&gt;




&lt;h2&gt;
  
  
  Container Orchestration Fundamentals
&lt;/h2&gt;

&lt;p&gt;Running a single container on a single machine is straightforward. Running hundreds of containers across dozens of servers, keeping them healthy, scaling them under load, routing traffic to them, and recovering from failures automatically. That is a completely different problem. This is what &lt;strong&gt;container orchestration&lt;/strong&gt; solves.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem: Why Manual Management Fails at Scale
&lt;/h3&gt;

&lt;p&gt;Modern applications increasingly adopt &lt;strong&gt;microservices architectures&lt;/strong&gt;, where an application is decomposed into small, specialized, independently deployable services, each running in its own container. A single e-commerce platform might have separate containers for authentication, product catalog, cart, payments, notifications, and search. At scale, managing these manually becomes operationally impossible.&lt;/p&gt;

&lt;p&gt;The core problems orchestration systems solve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compute provisioning&lt;/strong&gt;: determining which servers or VMs are available to run containers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scheduling&lt;/strong&gt;: placing containers on the right servers based on available resources, affinity rules, and constraints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource allocation&lt;/strong&gt;: assigning CPU and memory limits to each container to prevent noisy-neighbor problems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Availability&lt;/strong&gt;: continuously health-checking containers and automatically replacing failed ones&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scaling&lt;/strong&gt;: adding or removing container instances in response to demand (horizontal scaling)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Networking&lt;/strong&gt;: giving containers stable network identities, enabling service-to-service communication, and routing external traffic in&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: providing persistent storage for stateful containers (databases, message queues) that survives container restarts&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Two Core Components of Every Orchestration System
&lt;/h3&gt;

&lt;p&gt;Every orchestration platform, regardless of vendor, is organized around the same two-tier model:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Control Plane (the brain)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;cite&gt;The Control Plane manages the overall state of the cluster and is responsible for deciding how the system should run. Whenever you make a request to the Kubernetes API, it interacts with the Control Plane, which then communicates the necessary adjustments to the Worker Nodes.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Worker Nodes (the muscle)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;cite&gt;Worker Nodes are the actual executors of workloads within a Kubernetes cluster. While the Control Plane handles management decisions and monitors the state of the cluster, Worker Nodes are responsible for the actual execution of the containers that make up the applications.&lt;/cite&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Orchestration Landscape: From Many Options to One Clear Standard
&lt;/h3&gt;

&lt;p&gt;Container orchestration has gone through a rapid consolidation over the past decade. Several systems competed for dominance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Docker Swarm&lt;/strong&gt;: Docker's built-in clustering mode, simpler than Kubernetes but far less capable. Now largely abandoned for production use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apache Mesos&lt;/strong&gt;: A general-purpose cluster manager from Twitter and Airbnb. Powerful but complex. Twitter, one of its biggest champions, migrated away from it to Kubernetes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HashiCorp Nomad&lt;/strong&gt;: A lightweight, multi-workload scheduler that handles containers, VMs, and non-containerized apps. Still actively maintained and used by organizations that want something simpler than Kubernetes, but a distant second in adoption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kubernetes (K8s)&lt;/strong&gt;: Originally designed by Google based on lessons from its internal Borg system and open-sourced in 2014. Now the undisputed industry standard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Today, &lt;strong&gt;Kubernetes runs everywhere&lt;/strong&gt;: on-premises, on every major cloud provider (EKS on AWS, GKE on GCP, AKS on Azure), and as distributions from Red Hat (OpenShift), Rancher, and others. The CNCF (Cloud Native Computing Foundation), which governs Kubernetes, reports that over 96% of organizations are either using or evaluating Kubernetes.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Closer Look at Kubernetes Architecture
&lt;/h2&gt;

&lt;p&gt;Since Kubernetes has become the default answer to container orchestration, it is worth understanding its architecture in more depth.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Control Plane Components
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;The control plane is the "brain" of a Kubernetes cluster, responsible for managing its overall state. It consists of several core components:&lt;/cite&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;cite&gt;&lt;strong&gt;API Server (kube-apiserver)&lt;/strong&gt;: The central communication hub. It exposes the Kubernetes API, the primary interface for interacting with the cluster. All cluster operations transit through the API server.&lt;/cite&gt;&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;&lt;strong&gt;Scheduler (kube-scheduler)&lt;/strong&gt;: Determines where pods (the smallest deployable units in Kubernetes) run on worker nodes. It considers factors like resource requests, node constraints, and data locality to make efficient placement decisions.&lt;/cite&gt;&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;&lt;strong&gt;Controller Manager (kube-controller-manager)&lt;/strong&gt;: A collection of individual controllers that continuously monitor the cluster's state and take corrective actions to maintain the desired state.&lt;/cite&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;etcd&lt;/strong&gt;: &lt;cite&gt;A distributed key-value store used by Kubernetes for persistent storage of all cluster data. This is where configuration data, state information, and metadata are stored, making etcd a critical component for data recovery and cluster state maintenance.&lt;/cite&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Worker Node Components
&lt;/h3&gt;

&lt;p&gt;&lt;cite&gt;Worker nodes run application workloads and include kubelet for communication with the control plane, kube-proxy for networking, and a container runtime (such as containerd or Docker) to manage containers.&lt;/cite&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;cite&gt;&lt;strong&gt;Kubelet&lt;/strong&gt; — an agent that constantly communicates with the Control Plane, receiving instructions about the desired state of containers and monitoring the resources running on the node.&lt;/cite&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kube-proxy&lt;/strong&gt; — manages network rules on each node, enabling pods to communicate with each other and with services outside the cluster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Container runtime&lt;/strong&gt; — the engine that actually pulls and runs container images. Kubernetes supports containerd, CRI-O, and others. Docker as a runtime was deprecated in Kubernetes 1.24.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Fundamental Design Philosophy: Desired State
&lt;/h3&gt;

&lt;p&gt;What makes Kubernetes powerful is its &lt;strong&gt;declarative model&lt;/strong&gt;. You describe what you want (three replicas of this container, always), and Kubernetes continuously works to make reality match that description. If a pod crashes, the Controller Manager notices and schedules a replacement. If a node goes down, its pods are rescheduled elsewhere. You do not issue commands like "restart this container" — you declare desired state and Kubernetes reconciles it continuously.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# A simple Kubernetes Deployment — declare what you want
&lt;/span&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apps/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deployment&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;flask-app&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;          &lt;span class="c1"&gt;# Always keep 3 copies running
&lt;/span&gt;  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;matchLabels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;flask-app&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;flask-app&lt;/span&gt;
    &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;flask-app&lt;/span&gt;
        &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ghcr.io/your-username/my-flask-app:1.0&lt;/span&gt;
        &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;containerPort&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Apply this with &lt;code&gt;kubectl apply -f deployment.yaml&lt;/code&gt; and Kubernetes handles the rest — scheduling, health checking, and self-healing automatically.&lt;/p&gt;




&lt;h2&gt;
  
  
  Putting It All Together
&lt;/h2&gt;

&lt;p&gt;The journey from code to production with containers looks like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write code&lt;/strong&gt; → &lt;strong&gt;Define a Dockerfile&lt;/strong&gt; → &lt;strong&gt;Build and tag the image&lt;/strong&gt; → &lt;strong&gt;Push to a registry&lt;/strong&gt; → &lt;strong&gt;Deploy to an orchestrated cluster&lt;/strong&gt; → &lt;strong&gt;Orchestrator manages it from there&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This pipeline is repeatable, environment-agnostic, and automatable end to end through CI/CD tools like GitHub Actions, GitLab CI, or Jenkins. Every step after "push to registry" can be fully automated — meaning a code commit can trigger a production deployment with no manual steps and no "it works on my machine" surprises.&lt;/p&gt;

&lt;p&gt;Understanding containers and orchestration is not optional knowledge for modern developers and data engineers. It is the foundation on which virtually every cloud-native application, data pipeline, and AI workload is built today.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Are you running containers in production? What orchestration setup are you using? Share in the comments below.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>kubernetes</category>
      <category>devops</category>
      <category>cloudnative</category>
    </item>
    <item>
      <title>Containers: The Building Block of Cloud Native Architecture</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Wed, 22 Jul 2026 06:36:02 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/containers-the-building-block-of-cloud-native-architecture-45ff</link>
      <guid>https://dev.to/derrickryangiggs/containers-the-building-block-of-cloud-native-architecture-45ff</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;How a decades-old Linux idea became the foundation of modern software deployment and why containers solved the problems that VMs couldn't.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Based on cloud native curriculum from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;@Linux Foundation&lt;/a&gt; | CNCF&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The Problem Containers Were Built to Solve
&lt;/h2&gt;

&lt;p&gt;Before containers, deploying even a simple Python web application was a multi-layered coordination exercise. You had to align the operating system configuration, the language runtime, extensions, system libraries, networking rules, and third-party connections like databases, all across development, staging, and production environments. One environment ran Python 3.9; another ran 3.11. A library worked on the developer's machine and failed in production. Packages installed globally on one server conflicted with another application running beside it.&lt;/p&gt;

&lt;p&gt;This created significant &lt;strong&gt;operational friction&lt;/strong&gt; between developers, who wrote and tested code in their own environments, and sysadmins, who managed the infrastructure those apps ultimately ran on. Deployment became error-prone. Debugging production issues was painful. Maintaining consistency across servers was a manual, fragile effort.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resource inefficiency&lt;/strong&gt; compounded the problem. To get reproducible, isolated environments, organizations turned to &lt;strong&gt;Virtual Machines (VMs)&lt;/strong&gt;. A VM emulates an entire physical server, including its own operating system and kernel. This worked, but running dozens or hundreds of VMs meant each carried the full overhead of a guest OS: gigabytes of memory and disk per instance, slow boot times, and rising infrastructure costs.&lt;/p&gt;

&lt;p&gt;Containers attacked both problems simultaneously.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is a Container?
&lt;/h2&gt;

&lt;p&gt;A container bundles an application together with all its dependencies (runtimes, libraries, configuration files, environment variables) into a single portable unit. The environment a developer tests in is exactly the same environment that runs in production. Sysadmins no longer need to manually reconstruct the right conditions on each server. The container carries those conditions with it.&lt;/p&gt;

&lt;p&gt;The key resource efficiency breakthrough is this: &lt;strong&gt;containers share the host machine's kernel&lt;/strong&gt; rather than running their own. This eliminates the full overhead of a guest OS per instance. Containers are lighter and faster than VMs, making it practical to run many isolated environments on the same physical hardware, delivering the isolation benefits of VMs without the cost.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A container is not a lightweight VM. It is an &lt;strong&gt;isolated process&lt;/strong&gt; running on a shared host kernel, with its view of the system restricted by Linux kernel features.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  A Brief History of Container Technology
&lt;/h2&gt;

&lt;p&gt;Container concepts are older than most people realize.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1979 - chroot:&lt;/strong&gt; The earliest predecessor was the &lt;code&gt;chroot&lt;/code&gt; command, introduced in Unix Version 7. It allowed users to isolate a process from the main filesystem by creating a &lt;strong&gt;chroot jail&lt;/strong&gt;, a restricted environment that simulated a new root directory. Within this jail, a process could only access files in its own assigned directory, effectively isolating it from the rest of the system while the files remained physically present on disk. Chroot directories can be created at various points in the filesystem hierarchy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2006 - cgroups:&lt;/strong&gt; Google engineers built "process containers" for internal resource isolation, which were contributed to the Linux kernel and renamed &lt;strong&gt;control groups (cgroups)&lt;/strong&gt;. Merged in Linux 2.6.24 in 2008, cgroups gave the kernel the ability to limit and account for the resource usage of process groups, the foundation of what containers rely on today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2008 - LXC (Linux Containers):&lt;/strong&gt; LXC was the first practical container runtime, combining cgroups and namespaces into a usable tool. It was powerful but complex to operate, with no image standard and a difficult CLI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2013 - Docker:&lt;/strong&gt; Solomon Hykes and the dotCloud team wrapped LXC (and later their own &lt;code&gt;libcontainer&lt;/code&gt;) in a developer-friendly interface. Docker's key innovations were &lt;strong&gt;images&lt;/strong&gt;: portable, layered snapshots of a container's filesystem, and a registry (Docker Hub) to distribute them. For the first time, developers could truly "ship their environment."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2015 - OCI and CNCF:&lt;/strong&gt; As the ecosystem grew and multiple container formats emerged, industry leaders formed the &lt;strong&gt;Open Container Initiative (OCI)&lt;/strong&gt;, co-founded by Docker, CoreOS, and the Linux Foundation, to standardize the container image and runtime specifications. The same year, the CNCF was founded to promote containers and cloud native technologies across the ecosystem. Docker donated its runtime as &lt;strong&gt;runc&lt;/strong&gt;, the reference implementation of the OCI runtime spec. &lt;strong&gt;containerd&lt;/strong&gt; was later split out as the higher-level container lifecycle manager, and is now the standard runtime in production Kubernetes clusters.&lt;/p&gt;




&lt;h2&gt;
  
  
  How Containers Work: The Linux Kernel Primitives
&lt;/h2&gt;

&lt;p&gt;Modern containers rest on two core Linux kernel features: &lt;strong&gt;namespaces&lt;/strong&gt; and &lt;strong&gt;cgroups&lt;/strong&gt;. These are not Docker inventions; they are kernel primitives that Docker and other runtimes made accessible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Namespaces: Isolation
&lt;/h3&gt;

&lt;p&gt;Namespaces give each container its own isolated view of the system. A process inside a namespace cannot see or interfere with resources outside it. The Linux kernel currently provides seven namespaces:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pid&lt;/strong&gt; - Process IDs. Each container gets its own process ID space, so the first process inside a container sees itself as PID 1, regardless of what's running on the host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;net&lt;/strong&gt; - Network. Each container gets its own network stack: its own IP addresses, routing tables, firewall rules, and ports. Two containers can both listen on port 8080 without conflicting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;mnt&lt;/strong&gt; - Mount points. Abstracts the filesystem view and manages which directories and filesystems a container can see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ipc&lt;/strong&gt; - Interprocess communication. Provides separation of named shared memory segments between containers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;user&lt;/strong&gt; - User and group IDs. Gives containers their own set of user and group IDs, enabling rootless containers where a process runs as root inside the container but as an unprivileged user on the host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;uts&lt;/strong&gt; - Unix Time Sharing. Allows each container to have its own hostname and domain name, independent of the host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;time&lt;/strong&gt; - The newest namespace. Can be used to virtualize the clock of a system, useful for testing or sandboxing time-sensitive workloads.&lt;/p&gt;

&lt;h3&gt;
  
  
  cgroups: Resource Control
&lt;/h3&gt;

&lt;p&gt;While namespaces control what a container can &lt;em&gt;see&lt;/em&gt;, &lt;strong&gt;cgroups (control groups)&lt;/strong&gt; control what it can &lt;em&gt;consume&lt;/em&gt;. They limit and enforce how much CPU, memory, disk I/O, and network bandwidth a container is allowed to use. This prevents a single misbehaving container from starving others on the same host, a critical guarantee in multi-tenant environments.&lt;/p&gt;

&lt;p&gt;Modern Linux systems use &lt;strong&gt;cgroups v2&lt;/strong&gt;, which provides a unified hierarchy and better support for container runtimes like containerd.&lt;/p&gt;

&lt;h3&gt;
  
  
  OverlayFS: Efficient Layered Filesystems
&lt;/h3&gt;

&lt;p&gt;A third important primitive is &lt;strong&gt;OverlayFS&lt;/strong&gt;, which enables Docker's layered image model. Each Docker image is composed of read-only layers stacked on top of each other. When a container runs, a thin writable layer is added on top. Changes are written to this layer only, while the base image layers are shared across all containers that use them, dramatically reducing disk usage and speeding up image pulls.&lt;/p&gt;




&lt;h2&gt;
  
  
  Containers vs. Virtual Machines: The Real Difference
&lt;/h2&gt;

&lt;p&gt;The fundamental distinction is clear once you understand the kernel.&lt;/p&gt;

&lt;p&gt;A VM emulates an entire physical computer. It runs its own full operating system, kernel included, on top of a hypervisor. This provides strong isolation but carries substantial overhead: each VM needs gigabytes of memory just for the OS, and takes minutes to boot.&lt;/p&gt;

&lt;p&gt;A container is just an isolated process on the host. It shares the host's kernel directly. There is no hypervisor layer, no guest OS, no boot sequence. A container starts in milliseconds.&lt;/p&gt;

&lt;p&gt;This shared-kernel model is also where the &lt;strong&gt;security boundary matters&lt;/strong&gt;: if there is a kernel vulnerability, it potentially affects all containers on that host. For high-security multi-tenant workloads like AWS Lambda or Google Cloud Run, providers actually run containers inside microVMs (using tools like Firecracker or gVisor) to get both the speed of containers and the stronger isolation of VMs.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Container Runtime Stack
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;docker run&lt;/code&gt;, several layers of software are involved:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker CLI / Kubernetes&lt;/strong&gt; sends a request to &lt;strong&gt;containerd&lt;/strong&gt; (the high-level container lifecycle manager), which calls &lt;strong&gt;containerd-shim&lt;/strong&gt; (one per container), which calls &lt;strong&gt;runc&lt;/strong&gt; (the low-level OCI runtime that actually creates the container using namespaces and cgroups).&lt;/p&gt;

&lt;p&gt;Understanding this stack matters because Kubernetes dropped direct Docker support in 1.24, moving to containerd as the standard runtime via the &lt;strong&gt;Container Runtime Interface (CRI)&lt;/strong&gt;. Docker is still a perfectly valid developer tool, but in production Kubernetes clusters, containerd is what's running under the hood.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Matters for Cloud Native Development
&lt;/h2&gt;

&lt;p&gt;Containers are the unit of deployment in cloud native systems. Everything built on top, including Kubernetes, service meshes, CI/CD pipelines, and serverless platforms, assumes containers as the baseline.&lt;/p&gt;

&lt;p&gt;Understanding what's inside a container (namespaces, cgroups, OverlayFS) makes you a better engineer. You can debug resource contention issues, reason about security boundaries, understand why two containers can share a port without conflict, and make informed decisions about when to use containers versus microVMs for sensitive workloads.&lt;/p&gt;

&lt;p&gt;The ecosystem has matured significantly: OCI standards mean container images built with Docker run on containerd, Podman, or any OCI-compliant runtime without modification. The "build once, run anywhere" promise that Docker introduced in 2013 is now genuinely delivered by an open, standardized stack.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Learnings from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;Linux Foundation&lt;/a&gt;'s cloud native curriculum.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloudnative</category>
      <category>linux</category>
      <category>containers</category>
      <category>docker</category>
    </item>
    <item>
      <title>Autoscaling and Serverless: Scaling Smarter in Cloud Native Systems</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sat, 18 Jul 2026 09:18:57 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/autoscaling-and-serverless-scaling-smarter-in-cloud-native-systems-2oa1</link>
      <guid>https://dev.to/derrickryangiggs/autoscaling-and-serverless-scaling-smarter-in-cloud-native-systems-2oa1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;How modern cloud native platforms dynamically adjust to demand — and how serverless takes that abstraction even further.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Based on cloud native curriculum from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;@Linux Foundation&lt;/a&gt; | CNCF&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What Is Autoscaling?
&lt;/h2&gt;

&lt;p&gt;Autoscaling is the dynamic adjustment of compute resources in response to current demand. Rather than statically provisioning infrastructure for peak load — and paying for it even during quiet periods — autoscaling ensures your system expands when traffic rises and contracts when it falls.&lt;/p&gt;

&lt;p&gt;The primary metrics that drive autoscaling decisions are &lt;strong&gt;CPU utilization&lt;/strong&gt; and &lt;strong&gt;memory consumption&lt;/strong&gt;, though modern systems can scale on virtually any observable signal: queue depth, request latency, custom application metrics, and even external event sources.&lt;/p&gt;

&lt;p&gt;There are two fundamental approaches to scaling: &lt;strong&gt;horizontal&lt;/strong&gt; and &lt;strong&gt;vertical&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Horizontal Scaling (Scale Out)
&lt;/h2&gt;

&lt;p&gt;Horizontal scaling — also called &lt;strong&gt;scaling out&lt;/strong&gt; — describes the process of spawning new compute resources to distribute load. In practice, this means launching new copies of your application: additional pods in Kubernetes, new virtual machine instances, or additional container replicas. When traffic drops, those extra instances are terminated.&lt;/p&gt;

&lt;p&gt;This is the approach most cloud native systems favour. It's highly flexible, works well with stateless services, and doesn't require downtime to apply. It also aligns naturally with microservices architecture, where each service can scale independently based on its own load.&lt;/p&gt;




&lt;h2&gt;
  
  
  Vertical Scaling (Scale Up)
&lt;/h2&gt;

&lt;p&gt;Vertical scaling — &lt;strong&gt;scaling up&lt;/strong&gt; — changes the size of the underlying hardware or container resource allocation. Instead of adding more instances, you give each existing instance more CPU cores or memory.&lt;/p&gt;

&lt;p&gt;Vertical scaling works within certain physical limits. For bare-metal servers, you're constrained by the maximum hardware specs of the machine. For virtual machines and containers, the ceiling is typically the size of the largest available instance type or node. Once you hit that ceiling, vertical scaling alone isn't enough.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key distinction:&lt;/strong&gt; Horizontal scaling adds capacity by adding instances; vertical scaling adds capacity by enlarging existing ones. In most cloud native workloads, horizontal scaling is preferred for flexibility and resilience, with vertical scaling used to right-size individual workloads.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Kubernetes Autoscaling: HPA, VPA, and KEDA
&lt;/h2&gt;

&lt;p&gt;In Kubernetes environments, autoscaling operates at multiple levels simultaneously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Horizontal Pod Autoscaler (HPA)&lt;/strong&gt; is the most commonly used mechanism. It continuously monitors metrics like CPU and memory through the Kubernetes Metrics Server and adjusts the number of pod replicas accordingly. HPA runs its reconciliation loop every 15 seconds, using the formula: &lt;code&gt;desiredReplicas = ceil(currentReplicas × currentMetric / targetMetric)&lt;/code&gt;. You configure it by specifying a target utilization level and a minimum and maximum replica count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Vertical Pod Autoscaler (VPA)&lt;/strong&gt; takes the opposite approach — rather than adding more pods, it analyses the resource usage of existing containers and adjusts their CPU and memory requests and limits. Where HPA assumes your pods are correctly sized and adds more of them, VPA assumes you have the right number of pods and focuses on getting their individual resource allocation right. One important caveat: running HPA and VPA together on CPU and memory can cause conflicts, since both controllers compete over the same resources. The recommended pattern is to use KEDA on custom metrics if you need both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KEDA (Kubernetes Event-Driven Autoscaler)&lt;/strong&gt; is a CNCF graduated project that extends HPA by enabling scaling based on external event sources — not just CPU percentages. Need to scale workers based on Kafka queue depth? The number of messages in a Redis list? A custom Prometheus metric? KEDA handles all of these. Under the hood, KEDA dynamically generates an HPA resource and feeds it custom metrics from external event sources — it enhances Kubernetes rather than replacing existing components.&lt;/p&gt;

&lt;p&gt;Used together, these tools can reduce costs by 30–50% compared to statically provisioned clusters while maintaining high service-level objectives.&lt;/p&gt;




&lt;h2&gt;
  
  
  Configuring Autoscaling Correctly
&lt;/h2&gt;

&lt;p&gt;Configuring autoscaling environments requires specifying minimum and maximum instance, VM, or container counts, along with the metric that triggers scaling. Getting this right isn't trivial — it requires running many near-production load tests and analyzing how your application behaves and how load balances across instances as it scales.&lt;/p&gt;

&lt;p&gt;Some common pitfalls to avoid:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setting &lt;strong&gt;maxReplicas too low&lt;/strong&gt; — if peak traffic demands 100 pods but your ceiling is 20, autoscaling becomes ineffective and the service degrades under load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not defining resource requests&lt;/strong&gt; on containers — HPA cannot calculate percentage usage without requests specified in the container spec.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring stabilization windows&lt;/strong&gt; — without configuring &lt;code&gt;stabilizationWindowSeconds&lt;/code&gt; on scale-down, your HPA may scale up and down repeatedly in response to short spikes, a behaviour called "flapping."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Scaling your application and underlying infrastructure properly increases both the availability and resilience of your services — a principle that holds in cloud native environments and traditional ones alike.&lt;/p&gt;




&lt;h2&gt;
  
  
  Serverless: Abstracting Infrastructure Away
&lt;/h2&gt;

&lt;p&gt;If containers and Kubernetes abstract away physical servers, &lt;strong&gt;serverless computing&lt;/strong&gt; abstracts away almost everything else — networks, virtual machines, operating systems, and load balancers. You provide the application code; the cloud provider selects the right environment to run it, allocates resources, scales it, and handles all the operational overhead.&lt;/p&gt;

&lt;p&gt;This dramatically lowers the barrier to deploying applications. A developer building a simple web service or API no longer needs to configure infrastructure — they write and deploy code, and the platform handles the rest.&lt;/p&gt;

&lt;p&gt;All major cloud providers offer commercial serverless runtimes: &lt;strong&gt;AWS Lambda&lt;/strong&gt;, &lt;strong&gt;Google Cloud Functions&lt;/strong&gt;, and &lt;strong&gt;Azure Functions&lt;/strong&gt; are the most widely used. These also include subsets of serverless known as &lt;strong&gt;Function as a Service (FaaS)&lt;/strong&gt;, where individual functions are deployed and invoked on demand rather than running persistently.&lt;/p&gt;

&lt;p&gt;Serverless places particular emphasis on &lt;strong&gt;on-demand provisioning&lt;/strong&gt; — resources are allocated when a function is invoked and released immediately after it completes. This means you pay only for what you actually use, measured in milliseconds of execution time rather than hours of uptime.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Cold Start Problem
&lt;/h3&gt;

&lt;p&gt;One tradeoff worth understanding: serverless functions that haven't been invoked recently may experience a &lt;strong&gt;cold start&lt;/strong&gt; — a brief delay as the platform provisions a new execution environment. For latency-sensitive applications, this is an important design consideration. Techniques like provisioned concurrency (on AWS Lambda) or keeping functions warm with scheduled pings can mitigate this.&lt;/p&gt;




&lt;h2&gt;
  
  
  Knative: Open Source Serverless on Kubernetes
&lt;/h2&gt;

&lt;p&gt;Proprietary serverless offerings from cloud providers are powerful, but they come with a significant downside: &lt;strong&gt;vendor lock-in&lt;/strong&gt;. Moving an application from AWS Lambda to Google Cloud Functions requires rethinking the entire deployment model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Knative&lt;/strong&gt; is the open source answer to this problem. Built on top of Kubernetes, Knative extends existing application platforms with serverless capabilities — allowing you to run serverless workloads on any Kubernetes cluster, whether on-premises, on a public cloud, or in a hybrid environment.&lt;/p&gt;

&lt;p&gt;Knative handles infrastructure concerns including autoscaling (including &lt;strong&gt;scale to zero&lt;/strong&gt;, where idle services consume no resources), routing, event delivery, and container building — letting developers focus on business logic rather than Kubernetes internals.&lt;/p&gt;

&lt;p&gt;In October 2025, Knative officially &lt;strong&gt;graduated as a CNCF project&lt;/strong&gt;, marking its readiness for widespread production use. Major cloud providers and enterprises including Alibaba Cloud and Scaleway have already adopted it to power serverless functions, AI inference models, and scalable automation platforms. The graduation also signals Knative's expanding role in AI workloads — an increasingly important use case as organizations run GPU-accelerated inference on Kubernetes.&lt;/p&gt;




&lt;h2&gt;
  
  
  CloudEvents: Solving the Vendor Lock-In Problem for Events
&lt;/h2&gt;

&lt;p&gt;Many cloud providers and vendors offer proprietary event formats, making it difficult to move event-driven workloads between platforms or integrate across ecosystems.&lt;/p&gt;

&lt;p&gt;To address this, the &lt;strong&gt;CloudEvents&lt;/strong&gt; project was founded by CNCF. It provides a vendor-neutral specification for structuring event data in a common format, regardless of where the event originates or where it's consumed. The core idea is augmentation, not replacement — any existing event message flow can be slightly modified to adopt CloudEvents, meaning CloudEvents-enabled infrastructure can work seamlessly alongside non-CloudEvents infrastructure.&lt;/p&gt;

&lt;p&gt;CloudEvents has developed SDKs in nine programming languages to help developers create and process events. Within the CNCF ecosystem, it is already adopted by Argo, Falco, Harbor, Knative, and Serverless Workflow, making it a foundational piece of the cloud native eventing layer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why this matters:&lt;/strong&gt; Without a common event format, every integration between services or platforms requires custom glue code. CloudEvents standardizes this, much like how HTTP standardized web communication.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Putting It Together: Autoscaling + Serverless in Practice
&lt;/h2&gt;

&lt;p&gt;These two concepts complement each other well in real-world cloud native architectures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;Kubernetes-based microservice&lt;/strong&gt; might use HPA to scale pods horizontally based on CPU, KEDA to scale workers based on Kafka queue depth, and VPA to right-size resource requests automatically.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;serverless function&lt;/strong&gt; handles event-driven tasks (image processing, notifications, webhooks) without any persistent infrastructure — scaling from zero to thousands of concurrent executions in seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Knative&lt;/strong&gt; bridges these two worlds — bringing serverless behaviour (scale to zero, event-driven execution) to teams who want to stay on Kubernetes without committing to a proprietary FaaS platform.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CloudEvents&lt;/strong&gt; ensures that events flowing between these components — and across cloud providers — follow a consistent, interoperable format.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Together, these patterns give engineering teams the tools to build systems that are not just scalable, but cost-efficient, resilient, and portable by design.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Learnings from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;Linux Foundation&lt;/a&gt;'s cloud native curriculum.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloudnative</category>
      <category>kubernetes</category>
      <category>devops</category>
      <category>serverless</category>
    </item>
    <item>
      <title>Measuring RAG Quality With Hit Rate and MRR — LLM Zoomcamp Module 4</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sun, 12 Jul 2026 13:01:49 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/measuring-rag-quality-with-hit-rate-and-mrr-llm-zoomcamp-module-4-4f8e</link>
      <guid>https://dev.to/derrickryangiggs/measuring-rag-quality-with-hit-rate-and-mrr-llm-zoomcamp-module-4-4f8e</guid>
      <description>&lt;p&gt;Most RAG systems ship without a single metric. Module 4 of LLM Zoomcamp fixes that.&lt;/p&gt;

&lt;p&gt;Here's what I built and what the numbers showed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Setup
&lt;/h2&gt;

&lt;p&gt;Knowledge base: 72 course lesson pages pulled from GitHub at a fixed commit so everyone works with the same data.&lt;/p&gt;

&lt;p&gt;Ground truth: 360 questions generated by an LLM — 5 per page, worded differently from the source so keyword overlap doesn't inflate scores.&lt;/p&gt;

&lt;p&gt;Three search methods under test: keyword search with minsearch, vector search with ONNX embeddings, and hybrid search combining both via Reciprocal Rank Fusion.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Metrics
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Hit Rate&lt;/strong&gt; — did the right page appear in the top 5 results? Binary per question, averaged across 360.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MRR&lt;/strong&gt; — how high up was the right page? First place = 1.0, second = 0.5, third = 0.33. Penalizes systems that find the answer but bury it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;p&gt;Text search: Hit Rate 0.76, MRR 0.59&lt;/p&gt;

&lt;p&gt;Vector search: Hit Rate 0.73, MRR 0.55&lt;/p&gt;

&lt;p&gt;Hybrid search (k=1): Hit Rate 0.84, MRR 0.65&lt;/p&gt;

&lt;p&gt;Text beat vector. Hybrid beat both. Tuning k from 60 to 1 in RRF added measurable MRR improvement.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Takeaway
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# benchmark any search function in one call&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text_search&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ground_truth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vector_search&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ground_truth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hybrid_search&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ground_truth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you have a ground truth dataset and an evaluate() function, every search decision becomes quantitative. Change a parameter, re-run, see the delta. No more guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Free course: &lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;github.com/DataTalksClub/llm-zoomcamp&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>llm</category>
      <category>rag</category>
    </item>
    <item>
      <title>Why Your AI Works in a Notebook But Fails in Production — LLM Zoomcamp Module 3</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sun, 05 Jul 2026 13:58:10 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/why-your-ai-works-in-a-notebook-but-fails-in-production-llm-zoomcamp-module-3-74b</link>
      <guid>https://dev.to/derrickryangiggs/why-your-ai-works-in-a-notebook-but-fails-in-production-llm-zoomcamp-module-3-74b</guid>
      <description>&lt;p&gt;Every developer has seen it: an AI prototype that impresses in demos but breaks the moment real users touch it. The problem is rarely the model. It's everything around the model, how context is prepared, how tools are called, how failures are handled, how costs are tracked.&lt;/p&gt;

&lt;p&gt;Module 3 of LLM Zoomcamp 2026 addresses this gap head-on. Taught by Will Russell from Kestra, this module shifts the conversation from "how do I call an LLM" to "how do I run AI reliably at scale."&lt;/p&gt;

&lt;p&gt;Here's what I learned and what most LLM tutorials never teach you.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Experiment That Changed How I Think About AI
&lt;/h2&gt;

&lt;p&gt;Try this yourself. Open ChatGPT and ask it to generate a Kestra workflow that loads CSV data into BigQuery. You'll get YAML that looks completely reasonable and doesn't work. Wrong plugin types, outdated parameters, invented task names.&lt;/p&gt;

&lt;p&gt;Now try the same prompt in Kestra's AI Copilot. It generates a flow that runs.&lt;/p&gt;

&lt;p&gt;Same model family. Same prompt. Completely different outcome.&lt;/p&gt;

&lt;p&gt;The reason: Kestra's AI Copilot retrieves current plugin documentation before generating. The model has accurate, up-to-date context. ChatGPT is guessing from training data that's months or years old.&lt;/p&gt;

&lt;p&gt;This is &lt;strong&gt;Context Engineering&lt;/strong&gt;, the discipline of giving a model exactly the right information at the right time. It's more impactful than model size, fine-tuning, or prompt tricks.&lt;/p&gt;




&lt;h2&gt;
  
  
  RAG vs No RAG: Measured, Not Assumed
&lt;/h2&gt;

&lt;p&gt;The module includes a concrete experiment with two pre-built flows:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Without RAG&lt;/strong&gt;, the model invents plausible but fabricated Kestra 1.1 features with full confidence. It describes "Declarative I/O with Variables", "Enhanced Task Groups", and other features that sound real but aren't accurate to that release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With RAG&lt;/strong&gt;, the model retrieves the actual Kestra 1.1 release notes and returns real features: the No-Code Dashboard Editor, Multi-Agent AI Systems, Fix with AI, the Human Task for manual approvals, and improved air-gapped environment support.&lt;/p&gt;

&lt;p&gt;One is a liability in production. The other is actually useful.&lt;/p&gt;




&lt;h2&gt;
  
  
  AI Agents: The LLM Takes the Wheel
&lt;/h2&gt;

&lt;p&gt;The second half of the module moves from RAG to agents. The difference:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RAG pipeline&lt;/strong&gt;: you decide when to search, what to search, how many results to retrieve&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI agent&lt;/strong&gt;: the model decides all of that itself&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Kestra, agents are declared in YAML and the framework handles the agentic loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;research_agent&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;io.kestra.plugin.ai.agent.AIAgent&lt;/span&gt;
  &lt;span class="na"&gt;systemMessage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;You are a technical research assistant.&lt;/span&gt;
    &lt;span class="s"&gt;Use your tools to find accurate information before answering.&lt;/span&gt;
  &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{{ inputs.question }}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent decides whether to call a tool, which tool, with what query, and when it has enough context to stop searching and answer. You get full observability, every tool call, every response, every token logged in the Kestra UI.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tracking What Matters: Token Usage
&lt;/h2&gt;

&lt;p&gt;Most tutorials skip this. The module doesn't.&lt;/p&gt;

&lt;p&gt;Every agent task in Kestra exposes token usage on its output object. The module shows you how to log it explicitly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;log_usage&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;io.kestra.plugin.core.log.Log&lt;/span&gt;
  &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
    &lt;span class="na"&gt;Output tokens&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;outputs.agent.tokenUsage.outputTokenCount&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I measured across runs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Short summary: 63 output tokens&lt;/li&gt;
&lt;li&gt;Long summary: 184 output tokens (~3x more)&lt;/li&gt;
&lt;li&gt;3-sentence vs 1-sentence prompt: ~2x more tokens&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small wording changes in prompts have real cost implications when running thousands of executions. Monitoring from day one prevents surprises.&lt;/p&gt;




&lt;h2&gt;
  
  
  When Agents Are the Wrong Choice
&lt;/h2&gt;

&lt;p&gt;This is the lesson most AI courses skip: &lt;strong&gt;agents are non-deterministic&lt;/strong&gt;. The same input can produce different tool calls, different search strategies, different answers across runs.&lt;/p&gt;

&lt;p&gt;For creative tasks, research, and open-ended workflows that flexibility is a feature.&lt;/p&gt;

&lt;p&gt;For financial reporting, compliance workflows, audit trails, and regulated industries it's a liability. You need deterministic, repeatable, fully auditable pipelines where every step is predictable and logged.&lt;/p&gt;

&lt;p&gt;Kestra supports both. Knowing when to use which is the actual engineering judgment.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Full Solution
&lt;/h2&gt;

&lt;p&gt;All flows and code are open source:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Take the Course Free
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;github.com/DataTalksClub/llm-zoomcamp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Module 4 covers Evaluation — how to measure whether your RAG system is actually working. Writing about that next.&lt;/p&gt;

</description>
      <category>rag</category>
      <category>agents</category>
      <category>kestra</category>
      <category>datatalksclub</category>
    </item>
    <item>
      <title>I Built a Hybrid Search Engine From Scratch — Here's What I Learned (LLM Zoomcamp 2026, Module 2)</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Fri, 26 Jun 2026 11:49:10 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/i-built-a-hybrid-search-engine-from-scratch-heres-what-i-learned-llm-zoomcamp-2026-module-2-3jdj</link>
      <guid>https://dev.to/derrickryangiggs/i-built-a-hybrid-search-engine-from-scratch-heres-what-i-learned-llm-zoomcamp-2026-module-2-3jdj</guid>
      <description>&lt;p&gt;I just completed Module 2 of the &lt;strong&gt;LLM Zoomcamp 2026&lt;/strong&gt; by &lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;@DataTalksClub&lt;/a&gt; — and this module completely changed how I think about search.&lt;/p&gt;

&lt;p&gt;Module 1 taught me RAG and agentic pipelines. Module 2 taught me that the search step inside RAG matters far more than I realized — and that keyword search is only half the story.&lt;/p&gt;

&lt;p&gt;Here's everything I built and learned.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Vector Search and Why Does It Matter?
&lt;/h2&gt;

&lt;p&gt;Traditional keyword search matches words. If you search for "enroll", it finds documents containing "enroll" — but misses documents about "joining", "signing up", or "registration" even if they mean exactly the same thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vector search matches meaning, not words.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every piece of text gets converted into a vector — a list of hundreds of numbers that captures its semantic meaning. Similar meanings produce similar vectors, so you can find relevant documents even when they use completely different words.&lt;/p&gt;

&lt;p&gt;This is the foundation of modern AI-powered search, and it's what makes RAG systems actually work at scale.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Built in Module 2
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Text Embeddings with a Lightweight ONNX Model
&lt;/h3&gt;

&lt;p&gt;Instead of downloading the full PyTorch + CUDA stack (~2GB), I used a lightweight ONNX runtime embedder — same vectors, 30x smaller installation, runs on any CPU:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;embedder&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Embedder&lt;/span&gt;

&lt;span class="n"&gt;embedder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Embedder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# loads Xenova/all-MiniLM-L6-v2 via ONNX&lt;/span&gt;
&lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;embedder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"How does approximate nearest neighbor search work?"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 384 dimensions&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model produces &lt;strong&gt;384-dimensional vectors&lt;/strong&gt; — each number represents a dimension of meaning in the text.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Vector Search From Scratch with NumPy
&lt;/h3&gt;

&lt;p&gt;Before using any library, I implemented vector search by hand to understand what's happening under the hood:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="c1"&gt;# cosine similarity — vectors are normalized, so dot product works directly&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cosine_similarity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# score all chunks against a query&lt;/span&gt;
&lt;span class="n"&gt;scores&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# X is the matrix of all chunk embeddings&lt;/span&gt;
&lt;span class="n"&gt;best_idx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;argmax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is exactly what vector databases like Qdrant and pgvector do internally — just much faster at scale using HNSW indexing.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Chunking Long Documents for Better Retrieval
&lt;/h3&gt;

&lt;p&gt;Full pages are too long and dilute the embedding — a match buried deep in a 10,000-character page still pulls in the whole page. The fix is chunking:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;gitsource&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chunk_documents&lt;/span&gt;
&lt;span class="n"&gt;chunks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;chunk_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# 72 pages → 295 overlapping chunks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Overlapping chunks (step &amp;lt; size) ensure sentences at boundaries don't get cut off. After chunking, retrieval becomes far more precise.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Vector Search with minsearch
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;minsearch&lt;/code&gt; now has a &lt;code&gt;VectorSearch&lt;/code&gt; class that wraps the numpy math into a clean interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;minsearch&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;VectorSearch&lt;/span&gt;

&lt;span class="n"&gt;vector_index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;VectorSearch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;keyword_fields&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"filename"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;vector_index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;chunks&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vector_index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query_vector&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num_results&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Comparing Keyword vs Vector Search
&lt;/h3&gt;

&lt;p&gt;For the query &lt;strong&gt;"How do I store vectors in PostgreSQL?"&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keyword search&lt;/strong&gt; — missed &lt;code&gt;08-pgvector.md&lt;/code&gt; entirely because "pgvector" wasn't in the query&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vector search&lt;/strong&gt; — ranked &lt;code&gt;08-pgvector.md&lt;/code&gt; first because it understood the semantic connection between "store vectors" and "pgvector"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the key insight: vector search finds meaning, keyword search finds words.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Hybrid Search with Reciprocal Rank Fusion (RRF)
&lt;/h3&gt;

&lt;p&gt;Neither approach is perfect on its own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vector search can miss exact terms, names, and rare keywords&lt;/li&gt;
&lt;li&gt;Keyword search misses paraphrases and synonyms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The solution is &lt;strong&gt;hybrid search&lt;/strong&gt; — run both and merge the results using RRF:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;rrf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result_lists&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num_results&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;scores&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;docs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result_lists&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"filename"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"start"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;
    &lt;span class="n"&gt;ranked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reverse&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ranked&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;num_results&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;rrf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;vector_results&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text_results&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;RRF ignores raw scores (which live on different scales) and only looks at rank position. A document that ranks well in both lists beats one that's only strong in a single list — even if it wasn't first in either.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Embeddings capture meaning, not words.&lt;/strong&gt; "Enroll" and "join" produce similar vectors. "Pizza" and "enrollment" don't. This is what makes semantic search powerful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Chunking is not optional.&lt;/strong&gt; Full pages dilute embeddings. 2,000-character overlapping chunks dramatically improve retrieval precision and cut LLM input tokens by 3x.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Neither keyword nor vector search is best.&lt;/strong&gt; Use hybrid search (RRF) in production. It consistently outperforms either approach alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. ONNX makes embeddings practical anywhere.&lt;/strong&gt; No GPU, no PyTorch, no CUDA. 67MB download, runs on a basic laptop. There's no reason not to use vector search even in constrained environments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. The right search approach depends on your data.&lt;/strong&gt; Vector search wins for semantic queries. Keyword search wins for exact terms (names, codes, IDs). Hybrid wins most of the time — but measure to be sure.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Homework Solution
&lt;/h2&gt;

&lt;p&gt;All my code for Module 2 is open source:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;vector-search.ipynb&lt;/code&gt; — embeddings, Qdrant, and vector RAG pipeline&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Vector Search Homework.ipynb&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Want to Learn Too?
&lt;/h2&gt;

&lt;p&gt;LLM Zoomcamp is &lt;strong&gt;completely free&lt;/strong&gt; — no paywall, no certificate fees.&lt;/p&gt;

&lt;p&gt;Sign up: &lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;github.com/DataTalksClub/llm-zoomcamp&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Are you working through LLM Zoomcamp 2026? Drop a comment — I'd love to compare notes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>llm</category>
      <category>vectordatabase</category>
      <category>datatalksclub</category>
    </item>
    <item>
      <title>Cloud Native Architecture Fundamentals: Building for the Modern Era</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Thu, 25 Jun 2026 09:06:34 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/cloud-native-architecture-fundamentals-building-for-the-modern-era-15lo</link>
      <guid>https://dev.to/derrickryangiggs/cloud-native-architecture-fundamentals-building-for-the-modern-era-15lo</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Optimize your software for cost, efficiency, reliability, and faster delivery — by combining the right technological and architectural patterns.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Based on cloud native curriculum from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;@Linux Foundation&lt;/a&gt; | CNCF&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What Is Cloud Native?
&lt;/h2&gt;

&lt;p&gt;The Cloud Native Computing Foundation (CNCF) defines cloud native as a set of practices that empower organizations to develop, build, and deploy workloads in computing environments — public, private, and hybrid cloud — to meet organizational needs at scale in a programmatic and repeatable manner.&lt;/p&gt;

&lt;p&gt;Cloud native systems are characterized by being &lt;strong&gt;loosely coupled&lt;/strong&gt;, interoperating in a manner that is &lt;strong&gt;secure, resilient, manageable, sustainable, and observable&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In practice, cloud native architectures typically consist of some combination of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Containers&lt;/li&gt;
&lt;li&gt;Service meshes&lt;/li&gt;
&lt;li&gt;Microservices&lt;/li&gt;
&lt;li&gt;Immutable infrastructure&lt;/li&gt;
&lt;li&gt;Serverless functions&lt;/li&gt;
&lt;li&gt;Declarative APIs&lt;/li&gt;
&lt;li&gt;Multi-tenancy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the ecosystem is thriving. According to the &lt;a href="https://www.cncf.io/announcements/2025/04/01/cncf-research-reveals-how-cloud-native-technology-is-reshaping-global-business-and-innovation/" rel="noopener noreferrer"&gt;CNCF 2024 Annual Survey&lt;/a&gt;, cloud native adoption has reached an all-time high of &lt;strong&gt;89%&lt;/strong&gt; among surveyed organizations, with Kubernetes being used, piloted, or evaluated by &lt;strong&gt;93%&lt;/strong&gt; of those organizations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Monolith vs. Cloud Native: Why the Shift?
&lt;/h2&gt;

&lt;p&gt;Traditional monolithic applications bundle all functionality into a single deployable unit. This works fine at small scale — but as user demand grows and teams expand, a monolith becomes a bottleneck. Every change risks the whole system, scaling requires duplicating everything, and a single bug can bring the entire application down.&lt;/p&gt;

&lt;p&gt;Cloud native architecture addresses this by &lt;strong&gt;breaking the application into smaller, independently deployable units&lt;/strong&gt; — each with a clearly defined scope of function. These are called &lt;strong&gt;microservices&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of one giant app, you could have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;UI service&lt;/strong&gt; rendering the frontend&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;checkout service&lt;/strong&gt; handling payments&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;notifications service&lt;/strong&gt; managing alerts&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;inventory service&lt;/strong&gt; tracking stock&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each microservice communicates with the others over a network, typically via REST APIs or message queues. They can be developed, deployed, scaled, and updated independently — by separate teams, on separate schedules.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Monolith → Microservices&lt;/strong&gt; is not just a technical shift. It's a business transformation that directly impacts how fast you can ship, how resilient your product is, and how efficiently your teams operate.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Core Technologies in Cloud Native
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Containers
&lt;/h3&gt;

&lt;p&gt;Containers package your application and all its dependencies into a single portable unit. They ensure the app runs consistently across development, staging, and production environments, eliminating the classic "it works on my machine" problem. Docker popularized this model; containerd is now the standard runtime in production Kubernetes clusters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Kubernetes (K8s)
&lt;/h3&gt;

&lt;p&gt;Kubernetes is the de facto orchestration platform for containers. It automates deployment, scaling, and management of containerized applications. Advanced Kubernetes usage, including auto-scaling with the Horizontal Pod Autoscaler (HPA) and Vertical Pod Autoscaler (VPA), has been shown to &lt;a href="https://medium.com/@reiqwan/cloud-native-architecture-patterns-for-2025-building-enterprise-systems-that-scale-7c465142aaa4" rel="noopener noreferrer"&gt;increase deployment efficiency by 55%&lt;/a&gt; according to CNCF data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Service Meshes
&lt;/h3&gt;

&lt;p&gt;A service mesh manages secure, reliable communication between microservices — handling load balancing, retries, circuit breaking, and mutual TLS (mTLS) encryption. Tools like &lt;strong&gt;Istio&lt;/strong&gt; and &lt;strong&gt;Linkerd&lt;/strong&gt; abstract these concerns away from your application code.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;2025 trend watch:&lt;/strong&gt; Service mesh is evolving away from the resource-heavy sidecar-per-pod model. Istio's &lt;strong&gt;ambient mode&lt;/strong&gt; now uses a node-level proxy (ztunnel) instead, dramatically reducing overhead and making mesh adoption more practical for teams previously deterred by operational complexity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Serverless
&lt;/h3&gt;

&lt;p&gt;Serverless takes abstraction further — you write code, the cloud provider handles all underlying infrastructure. Functions-as-a-Service (FaaS) platforms like AWS Lambda, Azure Functions, and Google Cloud Functions are ideal for event-driven, unpredictable workloads. Plans for serverless adoption are growing, with the share of companies running no serverless platforms expected to drop significantly through 2025.&lt;/p&gt;

&lt;h3&gt;
  
  
  Declarative APIs &amp;amp; Infrastructure-as-Code (IaC)
&lt;/h3&gt;

&lt;p&gt;Rather than imperatively telling systems &lt;em&gt;how&lt;/em&gt; to do something, you declare &lt;em&gt;what&lt;/em&gt; the desired state should be. Tools like &lt;strong&gt;Terraform&lt;/strong&gt;, &lt;strong&gt;Helm&lt;/strong&gt;, and &lt;strong&gt;Crossplane&lt;/strong&gt; allow teams to version-control infrastructure alongside application code — making environments reproducible and auditable.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Characteristics of Cloud Native Architecture
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. High-Level Automation
&lt;/h3&gt;

&lt;p&gt;To manage all the moving parts of a cloud native system, automation is critical at every stage — from development to production. CI/CD pipelines (using tools like GitHub Actions, ArgoCD, or Flux) enable fast, reliable delivery and make disaster recovery dramatically easier — if you must rebuild your entire system, your pipeline can do it reproducibly from source.&lt;/p&gt;

&lt;p&gt;A related practice worth knowing: &lt;strong&gt;GitOps&lt;/strong&gt;, where Git is the single source of truth for both application and infrastructure state. GitOps-based tools like ArgoCD continuously reconcile your running environment against what's declared in a repository, reducing configuration drift and enabling fast, auditable rollbacks.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Self-Healing
&lt;/h3&gt;

&lt;p&gt;Failures happen — this is expected and designed for. Cloud native applications embed &lt;strong&gt;health checks&lt;/strong&gt; that allow orchestration platforms like Kubernetes to automatically detect unhealthy containers and restart or replace them, often without any human intervention. Your uptime doesn't depend on someone being awake at 3am.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Scalability
&lt;/h3&gt;

&lt;p&gt;Cloud native applications are designed to &lt;strong&gt;scale horizontally&lt;/strong&gt; — spinning up more instances of a service under load, rather than upgrading a single server. Kubernetes' HPA can trigger this automatically based on real-time CPU, memory, or custom metrics. This elasticity means you always have the capacity to handle demand, without permanently over-provisioning.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Scaling goes both ways. Scaling &lt;em&gt;down&lt;/em&gt; during low-traffic periods — combined with usage-based pricing from cloud providers — is a major source of cost savings.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  4. Cost Efficiency
&lt;/h3&gt;

&lt;p&gt;Orchestration systems like Kubernetes are excellent at &lt;strong&gt;bin-packing&lt;/strong&gt; — placing workloads efficiently across your compute fleet to minimize waste. Combined with autoscaling and cloud pricing models, cloud native architectures allow you to pay for what you actually use, not what you might need in a worst-case scenario. Tools like &lt;strong&gt;OpenCost&lt;/strong&gt; and &lt;strong&gt;Kepler&lt;/strong&gt; (a CNCF project) now even provide visibility into Kubernetes spend and carbon consumption per workload.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Ease of Maintenance
&lt;/h3&gt;

&lt;p&gt;Microservices make applications more &lt;strong&gt;portable, testable, and independently deployable&lt;/strong&gt;. Small, well-scoped services are easier to understand, debug, and hand off between teams. This is especially valuable in organizations where multiple product teams need to move at their own pace without stepping on each other.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Secure by Default
&lt;/h3&gt;

&lt;p&gt;Cloud environments are often shared across multiple teams and workloads, requiring layered security models. Cloud native security operates across several dimensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Network policies&lt;/strong&gt; to restrict traffic between services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mTLS&lt;/strong&gt; via service meshes to encrypt inter-service communication&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RBAC&lt;/strong&gt; (Role-Based Access Control) to limit what each workload can access&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supply chain security&lt;/strong&gt; using tools like Trivy (image scanning) and KubeSec (Kubernetes manifest analysis)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security zones&lt;/strong&gt; to enforce isolation between tenants or environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CNCF Security Technical Advisory Group continuously develops guidance and tooling to address emerging threats across the cloud native landscape.&lt;/p&gt;




&lt;h2&gt;
  
  
  Observability: The Pillar You Can't Skip
&lt;/h2&gt;

&lt;p&gt;In a distributed, microservices-based architecture, knowing &lt;em&gt;what's happening inside your system&lt;/em&gt; is non-trivial. This is where &lt;strong&gt;observability&lt;/strong&gt; becomes a first-class concern — not something bolted on after problems arise.&lt;/p&gt;

&lt;p&gt;Cloud native observability rests on three pillars:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Metrics&lt;/strong&gt; — quantitative data about system health (CPU, memory, request rates, error rates)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logs&lt;/strong&gt; — structured records of events within services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traces&lt;/strong&gt; — end-to-end tracking of a request as it flows across multiple microservices&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Key tools in this space:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Prometheus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Metrics collection and alerting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Grafana&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Visualization dashboards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Jaeger / Zipkin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Distributed tracing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;OpenTelemetry&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vendor-neutral instrumentation standard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Fluentd / Loki&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Log aggregation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;According to the CNCF Q3 2025 State of Cloud Native report, observability tools are now the &lt;strong&gt;second most widely adopted&lt;/strong&gt; cloud native technology after Kubernetes, used by 28% of backend developers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Immutable Infrastructure: Stop Patching, Start Replacing
&lt;/h2&gt;

&lt;p&gt;Traditional operations involved SSH-ing into servers to apply patches, update configs, or fix issues. Cloud native systems take the opposite approach — &lt;strong&gt;immutable infrastructure&lt;/strong&gt; means servers are never modified after deployment. When a change is needed, a new image is built, tested, and deployed, and the old instance is discarded.&lt;/p&gt;

&lt;p&gt;This makes deployments &lt;strong&gt;predictable and repeatable&lt;/strong&gt;, eliminates configuration drift (where production slowly diverges from your declared desired state), and simplifies rollback — you simply redeploy the previous image.&lt;/p&gt;




&lt;h2&gt;
  
  
  Cloud Native vs. Cloud-Based: Know the Difference
&lt;/h2&gt;

&lt;p&gt;These terms are often used interchangeably, but they describe very different things:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Cloud-Based&lt;/th&gt;
&lt;th&gt;Cloud Native&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Design&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Legacy apps migrated to cloud&lt;/td&gt;
&lt;td&gt;Built from the ground up for cloud&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Scaling&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Often manual or vertical&lt;/td&gt;
&lt;td&gt;Automatic, horizontal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Deployment&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;May still be monolithic&lt;/td&gt;
&lt;td&gt;Microservices, containers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Infrastructure&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Often mutable&lt;/td&gt;
&lt;td&gt;Immutable, declarative&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Resilience&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Basic backup/restore&lt;/td&gt;
&lt;td&gt;Self-healing, auto-failover&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  What's Next: Cloud Native in the Age of AI
&lt;/h2&gt;

&lt;p&gt;Cloud native is rapidly becoming the default platform for AI/ML workloads too. Kubernetes is emerging as the primary runtime for GPU-accelerated training and inference. Tools like &lt;strong&gt;Kubeflow&lt;/strong&gt;, &lt;strong&gt;Argo Workflows&lt;/strong&gt;, and &lt;strong&gt;Kserve&lt;/strong&gt; bring MLOps discipline to model pipelines. The same principles — declarative configuration, autoscaling, observability, and GitOps — apply directly to AI infrastructure.&lt;/p&gt;

&lt;p&gt;This convergence of cloud native and AI is reshaping how organizations think about infrastructure at scale.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started: A Practical Path
&lt;/h2&gt;

&lt;p&gt;If you're new to cloud native, here's a pragmatic starting point:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Containerize a small, stateless service&lt;/strong&gt; with Docker&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy it on Kubernetes&lt;/strong&gt; (try Minikube or kind locally)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up a basic CI/CD pipeline&lt;/strong&gt; with GitHub Actions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add observability&lt;/strong&gt; with Prometheus and Grafana&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore GitOps&lt;/strong&gt; with ArgoCD or Flux&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Experiment with a service mesh&lt;/strong&gt; (Istio or Linkerd) as you scale out&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;a href="https://maturitymodel.cncf.io" rel="noopener noreferrer"&gt;CNCF Cloud Native Maturity Model&lt;/a&gt; is an excellent framework for understanding where you are and where to go next.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Cloud native architecture is not a single technology — it's a philosophy and a set of practices for building software that is resilient, scalable, and efficient by design. It demands a shift in how teams think about infrastructure, deployment, and failure. The payoff: faster delivery, lower costs, and systems that can grow as your users do.&lt;/p&gt;

&lt;p&gt;The ecosystem is maturing rapidly, and now is an excellent time to build these skills — they're increasingly foundational to modern software engineering.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Learnings from the &lt;a href="https://www.linuxfoundation.org" rel="noopener noreferrer"&gt;Linux Foundation&lt;/a&gt;'s cloud native curriculum. The Linux Foundation is the parent organization of CNCF and one of the leading sources of open source and cloud native education globally.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloudnative</category>
      <category>devops</category>
      <category>kubernetes</category>
      <category>microservices</category>
    </item>
    <item>
      <title>I Just Built an Agentic RAG System From Scratch — Here's What I Learned (LLM Zoomcamp 2026, Module 1)</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Sun, 21 Jun 2026 12:17:44 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/i-just-built-an-agentic-rag-system-from-scratch-heres-what-i-learned-llm-zoomcamp-2026-module-5a2c</link>
      <guid>https://dev.to/derrickryangiggs/i-just-built-an-agentic-rag-system-from-scratch-heres-what-i-learned-llm-zoomcamp-2026-module-5a2c</guid>
      <description>&lt;p&gt;I just completed Module 1 of the &lt;strong&gt;LLM Zoomcamp 2026&lt;/strong&gt; by &lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;@DataTalksClub&lt;/a&gt; — and honestly, this is the most hands-on AI course I've taken.&lt;/p&gt;

&lt;p&gt;No fluff. No hand-holding. Just real code, real concepts, and a working system by the end.&lt;/p&gt;

&lt;p&gt;Here's everything I learned — and why it matters if you're a data engineer or software developer trying to break into LLM applications.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is LLM Zoomcamp?
&lt;/h2&gt;

&lt;p&gt;LLM Zoomcamp is a &lt;strong&gt;free, open-source course&lt;/strong&gt; by Alexey Grigorev and DataTalks.Club that teaches you how to build production-ready LLM applications from scratch. No GPU required. No expensive API bills. Just Python, curiosity, and a willingness to build.&lt;/p&gt;

&lt;p&gt;Module 1 is called &lt;strong&gt;Agentic RAG&lt;/strong&gt; — and it covers everything from what an LLM is to building a fully autonomous AI agent that decides when and what to search.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Built in Module 1
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. A RAG Pipeline From Scratch
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;RAG&lt;/strong&gt; stands for Retrieval-Augmented Generation. The idea is simple: instead of asking an LLM a question and hoping it knows the answer, you first &lt;em&gt;search&lt;/em&gt; a knowledge base for relevant documents, then pass those documents as context to the LLM.&lt;/p&gt;

&lt;p&gt;The result? Grounded, accurate answers instead of hallucinations.&lt;/p&gt;

&lt;p&gt;I built the full pipeline in ~30 lines of Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;rag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;search_results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# 1. find relevant docs&lt;/span&gt;
    &lt;span class="n"&gt;prompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;build_prompt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;search_results&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 2. build context prompt&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                         &lt;span class="c1"&gt;# 3. generate answer&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple. Powerful. The foundation of every production RAG system.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Document Indexing with minsearch
&lt;/h3&gt;

&lt;p&gt;I indexed &lt;strong&gt;1,242 FAQ documents&lt;/strong&gt; from the DataTalks.Club Zoomcamp courses using &lt;code&gt;minsearch&lt;/code&gt; — a lightweight keyword search library built by Alexey himself. It uses the same concepts as Elasticsearch (text fields, keyword fields, boosting, filtering) but runs in pure Python with zero infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Document Chunking for Better Retrieval
&lt;/h3&gt;

&lt;p&gt;Long documents hurt retrieval precision. A match deep inside a 10,000-character page still pulls the whole page into the LLM context — wasteful and noisy.&lt;/p&gt;

&lt;p&gt;The fix is &lt;strong&gt;chunking&lt;/strong&gt;: split each document into smaller overlapping pieces and index those instead.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;gitsource&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chunk_documents&lt;/span&gt;
&lt;span class="n"&gt;chunks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;chunk_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result? &lt;strong&gt;~3× fewer input tokens&lt;/strong&gt; sent to the LLM — smaller, faster, cheaper, and more accurate.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Turning RAG Into an Agent with Function Calling
&lt;/h3&gt;

&lt;p&gt;This is where it gets exciting.&lt;/p&gt;

&lt;p&gt;A standard RAG pipeline is &lt;strong&gt;fixed&lt;/strong&gt;: question → search once → answer. The developer controls the flow.&lt;/p&gt;

&lt;p&gt;An &lt;strong&gt;agentic RAG&lt;/strong&gt; system puts the LLM in charge:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;question → LLM thinks → search? → LLM thinks → search again? → LLM thinks → answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The LLM decides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether to search at all&lt;/li&gt;
&lt;li&gt;What to search for&lt;/li&gt;
&lt;li&gt;How many times to search&lt;/li&gt;
&lt;li&gt;When it has enough context to answer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I implemented this using &lt;strong&gt;function calling&lt;/strong&gt; — giving the LLM a &lt;code&gt;search&lt;/code&gt; tool it can invoke on its own. In one test, the agent autonomously made &lt;strong&gt;3 different searches&lt;/strong&gt; with progressively refined queries before generating a final answer. No hardcoding. No fixed flow.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt;: Groq API (llama-3.1-8b-instant) — free tier, blazing fast&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search&lt;/strong&gt;: minsearch — lightweight keyword search&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chunking&lt;/strong&gt;: gitsource chunk_documents&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment&lt;/strong&gt;: uv + Python 3.12&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Knowledge base&lt;/strong&gt;: DataTalks.Club Zoomcamp lesson pages (72 markdown files, 295 chunks)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. RAG is just 3 functions.&lt;/strong&gt; search() + build_prompt() + llm(). Everything else is optimization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Chunking matters more than you think.&lt;/strong&gt; Going from full documents to 2,000-character chunks reduced input tokens by 3× and improved answer quality significantly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Agents are just loops.&lt;/strong&gt; The "magic" of agentic AI is literally a while loop that keeps calling the LLM until finish_reason == "stop". Understanding this demystifies 90% of agent frameworks like LangChain and LlamaIndex.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. You don't need OpenAI.&lt;/strong&gt; I ran everything on Groq's free tier using Llama 3.1. The OpenAI-compatible API means zero code changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Homework Solution
&lt;/h2&gt;

&lt;p&gt;All my code for Module 1 is open source on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/llm-zoomcamp-2026&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;rag-intro.ipynb&lt;/code&gt; — the full RAG pipeline&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;agents.ipynb&lt;/code&gt; — function calling and the agentic loop&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;homework.ipynb&lt;/code&gt; — Module 1 homework solutions&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Want to Learn Too?
&lt;/h2&gt;

&lt;p&gt;LLM Zoomcamp is &lt;strong&gt;completely free&lt;/strong&gt;. No paywall, no certificate fees, just open-source learning.&lt;/p&gt;

&lt;p&gt;Sign up here: &lt;a href="https://github.com/DataTalksClub/llm-zoomcamp/" rel="noopener noreferrer"&gt;github.com/DataTalksClub/llm-zoomcamp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Module 2 is up next — &lt;strong&gt;Vector Search&lt;/strong&gt;. I'll be writing about that too.&lt;/p&gt;

&lt;p&gt;If you're a data engineer, ML practitioner, or software developer who wants to build real LLM applications — not just call ChatGPT — this course is for you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Are you taking LLM Zoomcamp 2026? Drop a comment — I'd love to connect and compare notes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>rag</category>
      <category>datatalksclub</category>
    </item>
    <item>
      <title>I Built a Data Lakehouse to Map Kenya's Healthcare Inequality — Here's What I Learned</title>
      <dc:creator>Ryan Giggs</dc:creator>
      <pubDate>Mon, 08 Jun 2026 17:36:51 +0000</pubDate>
      <link>https://dev.to/derrickryangiggs/i-built-a-data-lakehouse-to-map-kenyas-healthcare-inequality-heres-what-i-learned-31b</link>
      <guid>https://dev.to/derrickryangiggs/i-built-a-data-lakehouse-to-map-kenyas-healthcare-inequality-heres-what-i-learned-31b</guid>
      <description>&lt;p&gt;A child born in Westlands, Nairobi has access to 7.23 health facilities per 10,000 people.&lt;/p&gt;

&lt;p&gt;A child born in Embakasi North, also in Nairobi, has 0.62.&lt;/p&gt;

&lt;p&gt;Same city. Same county. One-tenth the access.&lt;/p&gt;

&lt;p&gt;That number did not come from a government report. It did not come from a consultant's PowerPoint. It came from a pipeline I built from scratch, joining three public datasets that nobody had systematically connected before — the Ministry of Health facility registry, the KNBS 2019 Census, and HDX county boundary GeoJSON.&lt;/p&gt;

&lt;p&gt;This is the story of how I built it, why I made the architecture choices I made, and what I would do differently.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Kenya has 47 counties and over 20,000 registered health facilities. The Ministry of Health publishes facility data through the Kenya Master Health Facility Registry (KMHFR). The Kenya National Bureau of Statistics publishes county population data. The Humanitarian Data Exchange publishes county boundary GeoJSON for choropleth mapping.&lt;/p&gt;

&lt;p&gt;Three datasets. Three different sources. All public. None of them joined.&lt;/p&gt;

&lt;p&gt;Without joining them, you cannot answer the most basic questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Which counties are most underserved relative to their population?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Which counties have no maternity facilities? No ART centres? No TB clinics?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How many facilities would Bungoma need to reach the national baseline of 3 per 10,000 people?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Has the facility landscape changed over time — are counties gaining or losing services?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The data to answer all of this exists. It just has not been assembled. That is the problem this pipeline solves.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;p&gt;Here is what I built with, and more importantly, why:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Infrastructure as Code: OpenTofu&lt;/strong&gt; — Provisions two MinIO buckets before the stack starts. OpenTofu is the community-maintained open-source fork of Terraform following HashiCorp's BSL license change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Orchestration: Apache Airflow (CeleryExecutor + Redis)&lt;/strong&gt; — Monthly DAG: three ingestion tasks run in parallel, a barrier gate waits for all three to complete, then dbt runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Lake: MinIO&lt;/strong&gt; — S3-compatible object storage running in Docker. Raw NDJSON files land here first, partitioned by year/month/day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table Format: Apache Iceberg&lt;/strong&gt; — ACID transactions, schema evolution, and time travel on top of files. The SCD2 snapshot tracks which facilities gained or lost maternity/ART/TB services month over month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catalog: Iceberg REST Catalog&lt;/strong&gt; — SQLite-backed, persists across Docker restarts via a named volume.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query Engine: Trino 480&lt;/strong&gt; — Federated SQL over Iceberg tables stored in MinIO.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transformations: dbt Core + dbt-trino&lt;/strong&gt; — Staging models, four mart models, one SCD2 snapshot, 30 passing data quality tests, one seed file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dashboards: Apache Superset 5.0.0&lt;/strong&gt; — Eight charts on one dashboard.&lt;/p&gt;

&lt;p&gt;Everything runs in Docker Compose on my HP EliteBook 840. Zero cloud spend.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Architecture Tradeoff I Need To Be Honest About
&lt;/h2&gt;

&lt;p&gt;Here is where I am going to say something that might surprise you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This stack is overkill for 20,000 rows of data.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Trino is a distributed query engine built for petabyte-scale federated queries across dozens of data sources. My biggest table has 20,391 rows. DuckDB — a single embedded analytics database that runs in a Python process — would query that in milliseconds without any infrastructure at all.&lt;/p&gt;

&lt;p&gt;CeleryExecutor with Redis is designed for Airflow deployments with many concurrent tasks across multiple workers. I have three DAGs that run once a month. LocalExecutor handles that just fine with zero additional services.&lt;/p&gt;

&lt;p&gt;The Iceberg REST catalog backed by SQLite is, genuinely, the worst of both worlds at this scale — you get all of Iceberg's operational complexity without most of its benefits.&lt;/p&gt;

&lt;p&gt;So why did I build it this way?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Because this is the architecture I would run at scale — and I needed to prove I can operate it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If this pipeline were ingesting facility data from all 54 African Union member states, with real-time updates from DHIS2, and serving 200 analysts querying simultaneously — you would need exactly this stack. Trino for federated querying. CeleryExecutor so ingestion tasks do not block dashboard queries. Iceberg for time travel and schema evolution as the data model matures.&lt;/p&gt;

&lt;p&gt;The data volume is small. The architecture patterns are production-grade. I built it this way intentionally, because the goal of a portfolio project is not just to answer a data question — it is to demonstrate that you can operate the systems that answer data questions at companies where the stakes are real.&lt;/p&gt;

&lt;p&gt;When I sit in a data engineering interview and someone asks "have you worked with Trino and Iceberg?" the answer is yes, in anger, debugging catalog persistence issues and permission conflicts at 11pm. That is worth more than a hypothetical answer.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Actually Found
&lt;/h2&gt;

&lt;p&gt;After all of it was running, here is what the data showed:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;National level:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Bungoma is Kenya's most underserved county: 1.88 facilities per 10,000 people, serving 1.67 million people&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Samburu is the only county with a critical TB gap — just 1 TB facility for 310,327 people&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every county in Kenya has at least one emergency facility — that surprised me&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mandera has the highest raw ratio (6.26 per 10k) — but that is sparse population density, not good healthcare access. Ratios lie without context.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Nairobi sub-county drill-down:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Starehe (CBD): 7.23 facilities per 10,000 people&lt;/li&gt;
&lt;li&gt;Embakasi North: 0.62 facilities per 10,000 people&lt;/li&gt;
&lt;li&gt;The most underserved sub-county has eleven times fewer facilities per capita than the most served, within the same city&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The Dashboard
&lt;/h2&gt;

&lt;p&gt;Eight charts. One story. Here is what each one shows.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 1 — Facilities per 10,000 People by County&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wp6nhu3iydiu356ngcn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wp6nhu3iydiu356ngcn.png" alt=" " width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The primary national scorecard. Every bar is one of Kenya's 47 counties. The spike you see around Lamu reflects its small population relative to its facility count — a reminder that raw ratios must be read alongside absolute population figures. The counties sitting below 2.0 on the left — Trans Nzoia, Kakamega — are large-population counties being severely underserved in absolute terms. The Y axis is facilities per 10,000 people. The X axis is sorted alphabetically; the ranked view lives in the next chart.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 2 — Underserved Counties Ranking&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1jpl6n5t9xpsxecahtr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1jpl6n5t9xpsxecahtr.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All 47 counties ranked from most to least underserved. The severity score column is highlighted red for scores of 3 (critical) and pink for scores of 2 — Bungoma and Samburu both carry severity score 3. The &lt;code&gt;facilities_needed_to_baseline&lt;/code&gt; column shows how many additional facilities each county would need just to reach a minimum of 3 per 10,000 people. Bungoma needs 21. The &lt;code&gt;tb_gap_flag&lt;/code&gt; column confirms Samburu as the only county in Kenya with a critical TB service gap. This table is the most action-oriented output in the entire pipeline — it is a prioritised to-do list for the Ministry of Health.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 3 — Maternity Coverage by County&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F44v63kix975yls4vv31h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F44v63kix975yls4vv31h.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maternity facilities per 100,000 people across all 47 counties. The spike at Lamu (~52) is the small-population effect again. More meaningful are the counties between 10 and 17 on the left side — these are where maternal healthcare access is most constrained on a population-adjusted basis. Kenya's maternal mortality remains high in underserved counties, and this chart makes that structural gap visible and quantified for the first time in a reproducible pipeline.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 4 — Service Coverage Rates by County&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2ry240oqw9lfrivolq5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2ry240oqw9lfrivolq5.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Four services compared side by side for every county: TB (blue), maternity (dark red), ART/HIV treatment (orange-red), and emergency care (amber). The tall blue TB bars dominate because TB diagnosis points are integrated into a wider range of facility types nationally. The very short amber emergency bars across most counties are a quiet crisis in themselves — emergency care coverage is thin across the country. This is the most information-dense chart in the dashboard and rewards close examination county by county.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 5 — Nairobi Sub-County Facility Density&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbp2bhp4syiva1m969fx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbp2bhp4syiva1m969fx.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the chart that stops people. Embakasi North: 0.62 facilities per 10,000 people. Starehe: 7.23. Same city. The bar on the far right (Starehe/Westlands cluster) towers over everything else. Embakasi North, the short bar third from the left, has 291,760 people and only 18 health facilities. This chart is the most visceral data visualisation in the project — it shows that healthcare inequality is not just a rural versus urban story, but an intra-city story playing out at sub-county level inside Nairobi.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 6 — Nairobi Sub-County Service Gaps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fefjduq1phmqzpwyoze4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fefjduq1phmqzpwyoze4q.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full service breakdown for all 17 Nairobi sub-counties, sorted by facilities per 10k ascending — most underserved first. The table shows 2024 projected population (2019 census + 2.3% annual KNBS growth rate) alongside raw counts of maternity, ART, and emergency facilities per sub-county. What stands out is that every sub-county shows no_maternity_flag = false and no_emergency_flag = false. Nairobi's inequality is not a service absence crisis — it is a density crisis. Every sub-county has some maternity and emergency facilities. Not nearly enough of them.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 7 — Total Counties Mapped&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwb8zq322rxc8qxo6xrf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwb8zq322rxc8qxo6xrf.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A single bold number: 47. All of Kenya's counties accounted for. This is not just cosmetic — a custom dbt test (&lt;code&gt;assert_county_count_equals_47&lt;/code&gt;) enforces this in code. If any pipeline run produces fewer than 47 counties due to data quality issues, join failures, or ingestion gaps, the test fails and the pipeline stops before writing bad data to the mart tables.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Chart 8 — Kenya Facility Density Map&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj5p8321jgd3bdzfc9oz7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj5p8321jgd3bdzfc9oz7.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A full choropleth of all 47 Kenya counties, colour-coded by facility density. Light yellow is least served (0.9–1.8 per 10k). Dark maroon is most served (4.4–5.3 per 10k). The dense cluster of small coloured counties in the southwest reflects the high-population Rift Valley and central counties. The large pale northern counties — Turkana, Marsabit, Wajir, Mandera — are sparse in both population and facilities. Building this map required significant engineering: Superset's built-in Kenya map only has the pre-2013 provincial boundaries (8 provinces, not 47 counties), so I built a custom virtual dataset wrapping each county's raw GeoJSON geometry as a full Feature object to make deck.gl render it correctly.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Engineering Problems That Nearly Broke Me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The Superset logout loop&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Both Airflow and Superset were logging me out within 20 seconds of login. The root causes turned out to be three separate things simultaneously: multiple Airflow gunicorn workers not sharing session state, a Superset 5.0 regression breaking database session persistence, and Flask generating a random SECRET_KEY on every container restart — invalidating every session cookie on every &lt;code&gt;docker compose restart&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Fix: &lt;code&gt;AIRFLOW__WEBSERVER__WORKERS=1&lt;/code&gt;, a fixed SECRET_KEY in &lt;code&gt;.env&lt;/code&gt; from &lt;code&gt;openssl rand -hex 32&lt;/code&gt;, and a &lt;code&gt;before_request&lt;/code&gt; Flask hook forcing &lt;code&gt;session.permanent = True&lt;/code&gt; on every request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Iceberg catalog disappearing on restart&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every restart wiped all Trino schema and table knowledge. The REST catalog was using in-memory SQLite by default.&lt;/p&gt;

&lt;p&gt;Fix: &lt;code&gt;CATALOG_URI=jdbc:sqlite:/catalog/iceberg_catalog.db&lt;/code&gt; with a named Docker volume. Two config lines. One hour of debugging.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The dbt target/ permission conflict&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The VS Code dbt extension creates &lt;code&gt;dbt/target/&lt;/code&gt; with host user ownership (UID 1000). Airflow runs as UID 50000. Every &lt;code&gt;dbt run&lt;/code&gt; failed with Permission denied.&lt;/p&gt;

&lt;p&gt;Fix: declare &lt;code&gt;dbt-target&lt;/code&gt; as a named Docker volume mounted over the bind-mounted &lt;code&gt;./dbt&lt;/code&gt; directory. Named volumes are owned by the Docker daemon, not the host user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The KMHFR API redirect&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Original pipeline hit &lt;code&gt;kmhfl.health.go.ke&lt;/code&gt;. That domain 301-redirects to &lt;code&gt;kmhfr.health.go.ke&lt;/code&gt;, which returned just the URL path as plain text — not JSON. Three weeks of failed ingestion before finding the correct public API endpoint: &lt;code&gt;api.kmhfr.health.go.ke/api/public/facilities/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Superset Country Map with 8 old provinces&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Superset's built-in Kenya GeoJSON has the pre-2013 provincial boundaries — 8 provinces, not 47 counties. No ISO code mapping fixes this. The solution was switching to deck.gl Polygon with a custom SQL virtual dataset wrapping each county's geometry as a GeoJSON Feature object, with explicit CASE mapping for three county name mismatches across datasets.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Would Do Differently
&lt;/h2&gt;

&lt;p&gt;Use DuckDB instead of Trino for a project of this scale. Use LocalExecutor for Airflow. Start with the data model before the infrastructure.&lt;/p&gt;

&lt;p&gt;The data model is what creates value. The infrastructure is just plumbing. I spent more time debugging the plumbing than thinking about what the data should actually say.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The pipeline runs. The dashboards are live. The data tells a real story.&lt;/p&gt;

&lt;p&gt;The next step is getting it to the people who can act on it: Ministry of Health Kenya, UNICEF Kenya, Amref Health Africa, the Council of Governors, Code for Kenya. The data is public. The pipeline is open source. Anyone can run it.&lt;/p&gt;

&lt;p&gt;If you work at any of those organisations and want to talk about this data — reach out.&lt;/p&gt;

&lt;p&gt;Github : &lt;a href="https://github.com/Derrick-Ryan-Giggs/kenya-health-pipeline" rel="noopener noreferrer"&gt;github.com/Derrick-Ryan-Giggs/kenya-health-pipeline&lt;/a&gt;&lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>opensource</category>
      <category>python</category>
      <category>healthtech</category>
    </item>
  </channel>
</rss>
