<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SQLShark on Medium]]></title>
        <description><![CDATA[Stories by SQLShark on Medium]]></description>
        <link>https://medium.com/@SQLShark?source=rss-466d94b11a3e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vBa4tpbP16X4h-aBPDgucQ.jpeg</url>
            <title>Stories by SQLShark on Medium</title>
            <link>https://medium.com/@SQLShark?source=rss-466d94b11a3e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:40:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SQLShark/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I built the same ETL / ELT solution three times: PySpark, dbt, and SQL]]></title>
            <link>https://medium.com/@SQLShark/i-built-the-same-etl-elt-solution-three-times-pyspark-dbt-and-sql-36456c2d74fa?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/36456c2d74fa</guid>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[data-modelling]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 14:21:40 GMT</pubDate>
            <atom:updated>2026-09-11T14:21:40.688Z</atom:updated>
            <content:encoded><![CDATA[<p><em>PySpark, dbt and hand-written SQL over 13 million NYC taxi trips — what each one gave me, and what each one couldn’t do.</em></p><p>There’s a filter in my silver layer that reads:</p><blockquote>where trip_minutes between 0 and 300</blockquote><p>Five hours. Anything longer is a meter fault, not a taxi ride. Straightforward — except for one question: what happens to a trip of <em>exactly</em> 300 minutes?</p><p>`BETWEEN` is inclusive, so it’s kept. Had I written `&lt; 300` it would be dropped. Both are defensible. Only one is what I intended.</p><p>Here’s the thing that made me write this post: <strong>two of my three implementations were structurally incapable of testing that.</strong> Not “I didn’t get round to it.” Incapable. Working out why gave me a much clearer view of what these tools actually are than any comparison table I’d read.</p><p>I built the same pipeline three times — PySpark with Delta, dbt with DuckDB, and hand-written SQL — over four months of NYC yellow taxi data. Same cleaning rules, same star schema, same KPIs. What follows is what diverged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6N7yZFn1oT6pFwtNrKpuYA.png" /></figure><h3>The setup</h3><p>Public TLC yellow taxi records, January to April 2024. Roughly 13 million trips. Land the parquet, clean it, deduplicate, validate against the zone lookup, model a star schema, produce a handful of KPIs, and support adding a new month without a full reload.</p><p>All three landed on identical row counts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yTGwdcCznbfHXNJtooKUg.png" /></figure><p>That reconciliation mattered more than it sounds. If the three had disagreed I’d be comparing three different pipelines rather than three ways of writing one.</p><p>The 209,961 removed rows break down cleanly, and every one is attributable to a stated rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ic1OJVjEf80_ES7jUO2Lw.png" /></figure><p>The fare rule accounts for 94% of everything dropped. That’s 1.5% of trips where the meter recorded no money owed — a question for whoever owns the meter data, not a cleaning decision.</p><h3>Same rule, three dialects</h3><p>Start with the least interesting result, because it’s the one most comparisons over-index on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQsT_r6KT3Ffytgv004ZqA.png" /></figure><p>Near-identical. Porting the transformation logic between stacks took under an hour each time.</p><p><strong>The transformation logic was never the differentiator.</strong> Everything that separates these tools comes down to the logic: how you test it, how you schedule it, and who can safely change it in six months.</p><h3>Divergence 1: testing</h3><p>There are two kinds of tests, and most comparisons collapse them into one row.</p><p><strong>Tests against real data</strong></p><p>Nulls, accepted values, ranges, referential integrity. These ask: <em>*what did the source actually do?*</em></p><p>All three can do this. dbt does it best, because it’s declarative:</p><blockquote>```yaml</blockquote><blockquote>models:</blockquote><blockquote>- name: silver_trips</blockquote><blockquote>columns:</blockquote><blockquote>- name: trip_sk</blockquote><blockquote>tests: [not_null, unique]</blockquote><blockquote>- name: payment_type</blockquote><blockquote>tests:</blockquote><blockquote>- accepted_values:</blockquote><blockquote>values: [0, 1, 2, 3, 4, 5, 6]</blockquote><blockquote>- name: pickup_location_id</blockquote><blockquote>tests:</blockquote><blockquote>- relationships:</blockquote><blockquote>to: ref(‘dim_zone’)</blockquote><blockquote>field: location_id</blockquote><blockquote>- name: trip_minutes</blockquote><blockquote>tests:</blockquote><blockquote>- dbt_utils.accepted_range:</blockquote><blockquote>min_value: 0</blockquote><blockquote>max_value: 300</blockquote><blockquote>inclusive: true</blockquote><blockquote>```</blockquote><p>That’s twelve assertions in about thirty lines of YAML, and two of them failed on the first run. Both were real. More on that below.</p><p>In pure SQL there’s no framework, so you build one. DuckDB has no `RAISE`, which leads to this:</p><blockquote>```sql</blockquote><blockquote>— Fails the script if any row violates. The division by zero is deliberate:</blockquote><blockquote>— it is the only way to abort a DuckDB script from SQL.</blockquote><blockquote>select case when count(*) &gt; 0 then 1/0 else 0 end as assert_duration_range</blockquote><blockquote>from fact_trip</blockquote><blockquote>where trip_minutes not between 0 and 300;</blockquote><blockquote>```</blockquote><p>Ugly, and it works — the non-zero exit propagates to the runner, which halts the pipeline before the marts build. But you’ve just hand-rolled a worse `dbt test`.</p><p><strong>Tests against invented data</strong></p><p>Now the 300-minute question.</p><blockquote>```python</blockquote><blockquote>def test_filters_drop_boundary_and_invalid_rows(spark):</blockquote><blockquote>rows = [</blockquote><blockquote># (pickup, dropoff, fare, dist, keep?)</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,10,20), 12.5, 3.2, True), # normal</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,10,20), 0.0, 3.2, False), # fare = 0</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,10,20), 12.5, -1.0, False), # neg distance</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,16,30), 12.5, 3.2, False), # 390 min</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,9,50), 12.5, 3.2, False), # reversed</blockquote><blockquote>(dt(2024,1,1,10,0), dt(2024,1,1,15,0), 12.5, 3.2, True), # exactly 300</blockquote><blockquote>]</blockquote><blockquote>df = spark.createDataFrame(rows, SCHEMA)</blockquote><blockquote>result = apply_quality_filters(spark, df)</blockquote><blockquote>assert result.count() == 2</blockquote><blockquote>assert result.filter(~result.keep).count() == 0</blockquote><blockquote>```</blockquote><p>Six rows. Runs in milliseconds. No warehouse required.</p><p><strong>That last case cannot be written in dbt or in pure SQL.</strong> Not because of a missing feature — because of what those tools are. Every dbt test and every SQL assertion runs against data already loaded in the warehouse. A boundary case is a <em>*decision*</em>, not an observation. There is no quantity of real taxi data that tells you whether a 300-minute trip should be kept, because the answer isn’t in the data. It’s in your head, and the only way to check the code matches it is to construct the case and assert on it.</p><p>That needs a host language. It’s the strongest argument for putting Python in an otherwise SQL-shaped pipeline, and it’s got nothing to do with Spark’s distributed execution.</p><p><em>(Worth noting: dbt 1.8 added a `unit_tests:` block that supplies fixture rows and expected output. It closes some of this gap. It’s newer and less mature than pytest against a DataFrame, but it’s no longer accurate to say dbt can’t do this at all.)</em></p><p><strong>One more thing about tests: severity</strong></p><p>The detail I see skipped most often. In dbt:</p><blockquote>```yaml</blockquote><blockquote>- name: pickup_location_id</blockquote><blockquote>tests:</blockquote><blockquote>- relationships:</blockquote><blockquote>to: ref(‘dim_zone’)</blockquote><blockquote>field: location_id</blockquote><blockquote>config:</blockquote><blockquote>severity: warn # on staging</blockquote><blockquote>```</blockquote><p>I set the referential check to `warn` on staging and `error` on silver. That encodes ownership. A warning upstream means the source feed drifted — someone else’s data to fix, and it shouldn’t halt my build over a handful of rows. An error downstream means my own quarantine logic broke — my bug, stop everything.</p><p>Different failure, different owner, different response. That’s a modelling decision expressed in config.</p><h3>Divergence 2: incremental loading</h3><p>The requirement was to add a new month without reprocessing the others. Three mechanisms.</p><p><strong>PySpark — dynamic partition overwrite:</strong></p><blockquote>```python</blockquote><blockquote># SAFETY: without this config, mode(“overwrite”) deletes the ENTIRE table</blockquote><blockquote># before writing. One line between adding April and destroying Jan-Mar.</blockquote><blockquote>spark.conf.set(“spark.sql.sources.partitionOverwriteMode”, “dynamic”)</blockquote><blockquote>(df.write.mode(“overwrite”).partitionBy(“source_month”).parquet(path))</blockquote><blockquote>```</blockquote><p><strong>dbt — a config block and a predicate:</strong></p><blockquote>```sql</blockquote><blockquote>{{ config(materialized=’incremental’,</blockquote><blockquote>unique_key=’trip_sk’,</blockquote><blockquote>incremental_strategy=’delete+insert’) }}</blockquote><blockquote>{% if is_incremental() %}</blockquote><blockquote>where source_month not in (select distinct source_month from {{ this }})</blockquote><blockquote>{% endif %}</blockquote><blockquote>```</blockquote><p><strong>Pure SQL — delete and insert, in a transaction:</strong></p><blockquote>```sql</blockquote><blockquote>begin transaction;</blockquote><blockquote>delete from silver_trips where source_month = getvariable(‘target_month’);</blockquote><blockquote>insert into silver_trips …;</blockquote><blockquote>commit;</blockquote><blockquote>```</blockquote><p>All three achieve the same guarantee: April loaded 3,452,237 rows, January to March stayed unchanged to the row, and re-running produced identical counts.</p><p>Note the third one is the only version where a failed insert rolls the delete back. Neither of the others gives you that atomicity for free.</p><p><strong>The partition key is a correctness decision</strong></p><p>All three partition on `source_month`, derived from the <strong>**filename**</strong>, not from any row timestamp.</p><p>That looks like a performance choice. It isn’t. The January file contains trips that started on 31 December. Partition on `pickup_date` instead, and reloading April overwrites the `2024–03–31` partition with only April’s contribution to that date — silently deleting March rows that happen to share it.</p><p>Partitioning on the load unit is what makes overwrite safe.</p><p><strong>The thing that actually bit me</strong></p><p>Midway through, I added the `trip_distance between 0 and 100` filter. Re-ran `dbt build`. The range test still failed, on exactly the same 240 rows.</p><p>The filter was fine. `is_incremental()` was true, so the predicate excluded January, February and March — they were already loaded. Only unprocessed months went through the new filter. <strong>**The existing rows were never reprocessed.**</strong></p><p>That’s incremental working precisely as designed. Not redoing work is the entire point. But it means <strong>**changing transformation logic on an incremental model creates a backfill obligation**</strong>. My table now held rows built by two different versions of my code, and nothing in the tooling told me.</p><p>` — full-refresh` fixes it. On a real fact table, that’s hours of compute and a window where the table is being rebuilt, which is exactly why it has to be a deliberate act rather than something that happens quietly when you edit a model.</p><p>This is the kind of thing you only learn by hitting it.</p><h3>What the data actually said</h3><p>The pipeline was the easy part. Two findings changed what I’d report, and both surfaced from tests rather than from looking.</p><p><strong>An undocumented payment type that wasn’t undocumented</strong></p><p>`payment_type = 0` appears on 1,123,831 trips — 8.7% of the dataset. It’s absent from most copies of the TLC data dictionary circulating online, which start at 1.</p><p>My first instinct was bad data. The tipping profile said otherwise: 21% of those trips recorded a tip, averaging $0.94. Card is 95% and $4.21. Cash is 0% by definition, since the meter never sees cash tips. Type 0 matched neither.</p><p>The <strong>current</strong> dictionary, dated 18 March 2025, documents it: <strong>Flex Fare</strong>. Upfront, binding pricing on a yellow cab booked through a licensed e-hail app. The taximeter isn’t used. The passenger pays in the app — tip included.</p><p>Which explains everything. Look at the fare-to-total gap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6YqlYy9KGjotOZBv2sXPrA.png" /></figure><p>Flex Fare’s gap matches cash almost exactly — and cash records no tip at all. The extra $5 on card trips <em>*is*</em> the tip. The tips on those 1.1 million Flex Fare trips are real; they’re settled in the app and never reach this feed.</p><p>So excluding them from tip-rate analysis is correct on the merits, not out of caution. The tip data isn’t there to measure.</p><p><strong>The trap was documentation, not data.</strong> That happened twice in this project — vendor code 2 reads as “VeriFone Inc” in older dictionaries and “Curb Mobility, LLC” in the current one. Nothing in the data tells you.</p><p><strong>A tip rate that was measuring the wrong thing</strong></p><p>Card tip rate by borough:</p><p>- Manhattan: 23%</p><p>- Bronx: <strong>0.3%</strong></p><p>An easy story writes itself there, and it’s wrong.</p><p>Split the metric into two questions — <em>how often</em> do people tip, and <em>how much</em> when they do — and the difference relocates entirely:</p><blockquote>```sql</blockquote><blockquote>select</blockquote><blockquote>z.borough, f.pickup_hour,</blockquote><blockquote>count(*) as trips,</blockquote><blockquote>— how often</blockquote><blockquote>round(100.0 * count(*) filter (where f.tip_amount &gt; 0) / count(*), 1)</blockquote><blockquote>as tip_incidence_pct,</blockquote><blockquote>— how much, among those who tipped</blockquote><blockquote>round(100.0 * sum(f.tip_amount) filter (where f.tip_amount &gt; 0)</blockquote><blockquote>/ nullif(sum(f.fare_amount) filter (where f.tip_amount &gt; 0), 0), 2)</blockquote><blockquote>as tip_rate_when_tipped_pct</blockquote><blockquote>from fact_trip f</blockquote><blockquote>join dim_zone z on f.pickup_zone_key = z.location_id</blockquote><blockquote>where f.payment_type = 1</blockquote><blockquote>group by 1, 2</blockquote><blockquote>having count(*) &gt;= 100;</blockquote><blockquote>```</blockquote><p>Brooklyn, hour by hour:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-X8BKWwOW2tauhWo4F-Fw.png" /></figure><p><em>Incidence swings twelvefold across the day. Tip size never moves.</em></p><p>Incidence swings <strong>twelvefold</strong> across the day. The tip size when tipped never leaves the 21–27% band. If this were passenger behaviour, both columns would move. Only one does.</p><p>Across boroughs, the tip-when-tipped figures are: Manhattan 24–26%, Queens 20–23%, Brooklyn 21–27%, Bronx 16–35%. <strong>Everyone tips roughly the same.</strong> Not everyone is on a trip that can record one.</p><p>The Bronx confirms it. During business hours, 96–99% of card trips record no tip whatsoever — and those trips average $35 over 8 miles, against Manhattan’s $15 over 2.3 miles. That’s a different trip population sharing a column: long, expensive, fixed-price journeys that structurally don’t take a tip.</p><p>A single blended rate collapses “how often” and “how much” into one number and then reports it as behaviour. It’s a mix indicator wearing a behaviour indicator’s clothing.</p><p><em>(I couldn’t name that population from this dataset. `RatecodeID` would likely do it — codes 4 and 5 are out-of-city and negotiated fares — and I’d dropped that column in staging. Next iteration.)</em></p><h3>Head to head</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lswN0wCv31kh7Q2wlHbC8A.png" /></figure><p><em>Not a ranking. The last row is the one that decides it.*</em></p><p>A few notes on rows that mislead if read alone.</p><p><strong>”Scales to”</strong> is the row people weight most and should weight least here. DuckDB is single-process, so it’s bounded by one machine — but it handles hundreds of GB comfortably on a decent box, and at 13 million rows it’s <em>faster</em> than Spark because there’s no coordination overhead. The honest crossover is somewhere in the low TBs and depends more on workload shape than volume.</p><p><strong>”Lines to first output”</strong> flatters dbt slightly. Three of the six deliverables in my brief arrive as dbt configuration, which is genuinely less code — but the setup cost was learning the tool, not installing it.</p><p><strong>Pure SQL shipped the most</strong> in my case: four KPIs against two, plus the full star schema the other two skipped. That is not evidence it’s the better tool. It was built third, by which point every modelling decision was already made and all that remained was typing. Coverage differences are an artefact of build order.</p><h3>What I’d choose</h3><p><strong>dbt</strong>, when the transformation logic <em>is</em> the product and analysts will own it. The tests and lineage are free, the barrier to a second contributor is lowest, and for a SQL-shaped problem on data that fits one node it maps almost one-to-one onto what you need.</p><p><strong>PySpark</strong>, when volume genuinely exceeds one machine, when the logic is complex enough that unit tests earn their keep, or when the pipeline feeds ML. The general-purpose language buys you loops, retries, conditional backfills and testing that asserts against data you invented.</p><p><strong>Pure SQL</strong>, when the platform constrains you or the team is SQL-only. It works — you just end up rebuilding a worse dbt to get there. Explicit DDL and hand-written assertions have a real virtue though: nothing is hidden, and every mechanism is visible to whoever reads it next.</p><p>For the problem as briefed, I’d take dbt. And I’d revisit that the moment streaming ingestion or ML features entered the roadmap.</p><h3>The thing I’d tell myself at the start</h3><p>Comparing these tools on how nicely they express transformations is a waste of time. They’re all fine at that, and the SQL is nearly identical in all three.</p><p>The differences that matter are all downstream of the logic:</p><p>- <strong>What kind of test can you write?</strong> Only one of these can assert against data that doesn’t exist.</p><p>- <strong>What happens when you change a rule?</strong> On an incremental model, nothing — retroactively. That’s a property of the pattern, not a bug in the tool.</p><p>- <strong>Who can safely modify it in six months?</strong> That’s the row I’d actually decide on.</p><p>And separately from any of it: the pipeline was never the hard part. Two findings in this dataset changed what I’d report to a client, and neither came from the tooling. They came from a test failing and from asking why a number looked strange.</p><p>The tools help you get to that question faster. They don’t ask it for you.</p><p><em>Data: NYC TLC Trip Record Data, yellow taxi, January–April 2024. Data dictionary dated 18 March 2025 — worth checking you have the current one.</em></p><h3>References</h3><p><strong>Data and documentation</strong></p><p>TLC Trip Record Data — nyc.gov/site/tlc/about/tlc-trip-record-data.page</p><p>Yellow taxi data dictionary, 18 March 2025 — nyc.gov/assets/tlc/downloads/pdf/data_dictionary_trip_records_yellow.pdf</p><p>Taxi Zone Lookup (CSV) — linked from the trip record data page</p><p><strong>Flex Fare</strong></p><p>E-Hail providers — nyc.gov/site/tlc/businesses/e-hail-providers.page</p><p>Flexible Fare pilot, passenger FAQ — nyc.gov/site/tlc/about/flex-fare-pilot-passengers.page</p><p>Flex Fare rule package, adopted 14 August 2024 — rules.cityofnewyork.us/rule/flex-fare-rule-package</p><p><strong>Repositories</strong></p><p><a href="http://github.com/SQL-Shark/ridenow-lakehouse-pyspark">github.com/SQL-Shark/ridenow-lakehouse-pyspark</a></p><p><a href="http://github.com/SQL-Shark/ridenow-lakehouse-dbt">github.com/SQL-Shark/ridenow-lakehouse-dbt</a></p><p><a href="http://github.com/SQL-Shark/ridenow-lakehouse-sql">github.com/SQL-Shark/ridenow-lakehouse-sql</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36456c2d74fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fabric in August 2026: Six Updates That Change How You Build]]></title>
            <link>https://medium.com/@SQLShark/fabric-in-august-2026-six-updates-that-change-how-you-build-27cb75c49ac5?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/27cb75c49ac5</guid>
            <category><![CDATA[msfabric]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Thu, 10 Sep 2026 12:14:40 GMT</pubDate>
            <atom:updated>2026-09-10T12:14:40.396Z</atom:updated>
            <content:encoded><![CDATA[<p>August is usually a quiet month in the Microsoft data world. This one was not. Between a Spark runtime that is about to become the default under everyone’s feet, an OpenAI deprecation that took a live integration offline mid-month, and a rewrite of how warehouse schemas land in Git, there was more here affecting production systems than in most FabCon-adjacent releases.</p><p>Below are the six items I think matter, in the order I would act on them. Every feature is labelled Generally Available or Preview, because that distinction is the difference between a demo and a delivery plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MY1FI6zcEYHExvTB1vtelQ.jpeg" /></figure><h3><strong>1. Runtime 2.0 becomes the default in late September (GA)</strong></h3><p>This is the one with a deadline attached, so it goes first.</p><p>Fabric Runtime 2.0 is generally available and is a substantial platform jump: Apache Spark 4.1, Delta Lake 4.2, Python 3.13, Java 21, Scala 2.13 and Azure Linux 3.0. It is not the default yet. You currently have to opt in, but Microsoft’s stated plan is to make it the default runtime selection in the UI, and the default for new workspaces and environment items, in <strong>late September 2026</strong>.</p><p>That timeline is why this belongs in your backlog rather than your reading list. Python 3.13 and Scala 2.13 alone are enough to break pinned library versions in custom environments, and a Java 21 move tends to surface anything unusual in JDBC drivers or third-party JARs.</p><p>Alongside the runtime, the Native Execution Engine picked up a further round of query optimisations in August: reuse of broadcast joins across queries, native acceleration for ranking window functions such as RANK and DENSE_RANK, and automatic materialisation of reused CTEs. These are enabled automatically wherever NEE is available, with no code changes required, and they target exactly the shapes most medallion pipelines are made of: large joins, ranking logic and heavy transformation chains.</p><p><strong>What to do:</strong> clone a non-critical environment onto Runtime 2.0 this week and run your heaviest notebook and Spark Job Definition against it. You want to find the dependency conflicts on your schedule rather than on Microsoft’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*GerNIstIlbd97kVdmm4URQ.png" /><figcaption>Image from community fabric com</figcaption></figure><p>&gt; IMAGE: Component comparison, Runtime 1.3 vs Runtime 2.0 (Spark, Delta Lake, Python, Java, Scala, OS), with the late-September default-switch date marked on a timeline.</p><p>&gt; Caption: Runtime 2.0 is opt-in today and default from late September 2026.</p><h3><strong>2. The OpenAI Assistants API retirement hit data agents on 26 August (GA change)</strong></h3><p>The OpenAI Assistants API, the orchestration layer behind the Fabric data agent, was scheduled for shutdown by OpenAI on <strong>26 August 2026</strong>. After that date, direct calls to it stop working.</p><p>The practical impact depends entirely on how you consume data agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*3D_Bn482DFGzghMekPFdsQ.png" /><figcaption>image from community fabric com</figcaption></figure><p>- <strong>Programmatic callers using the Assistants API directly</strong> must migrate to the data agent’s Model Context Protocol (MCP) endpoint. This is the real work.</p><p>- <strong>SDK and Fabric portal users</strong> need little or no action, because Microsoft migrated those experiences internally, though conversation history may reset once.</p><p>- <strong>Agent configuration is untouched. </strong>Data sources, instructions and tools stay as they are.</p><p>There was a casualty. The integration between Copilot in Power BI and Fabric data agents was retired on the same date, and it is not being replaced. Microsoft’s position is that effort goes into the surfaces that already work, meaning the MCP endpoint, Microsoft 365 Copilot and Copilot Studio, rather than into rebuilding that specific bridge on a new API.</p><p>If you built a Power BI Copilot experience on top of a data agent for a client, that conversation is happening now, and the honest answer is that the pattern needs re-platforming rather than patching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*GGUKM2QDeI-BGzu-zFnchw.png" /><figcaption>image from community fabric</figcaption></figure><p><strong>What to do:</strong> grep your codebase for Assistants API calls. If your team wrote anything against the Fabric OpenAI client, the migration path to the Responses client and the MCP endpoint is documented, and only the querying code changes.</p><h3><strong>3. Fabric data agents in Copilot Studio went GA (GA)</strong></h3><p>The other half of that story is more positive. Fabric data agents are now generally available inside Copilot Studio, and the integration model changed shape in the process.</p><p>Instead of a bespoke connection, a Fabric data agent is now added as a <strong>tool</strong>. In Copilot Studio, you choose Add a tool, search for Fabric, and select the Fabric IQ Data MCP entry. Your agent then invokes it the way it calls any other tool, and the orchestrator decides when a question warrants going to governed enterprise data.</p><p>The resulting architecture is genuinely better than the old one. The data agent still executes inside Fabric, still respects permissions on the underlying sources, and still returns answers grounded in your governed estate. It also becomes one composable capability among many, so you can combine multiple data agents with line-of-business connectors in a single assistant.</p><p>For anyone who has tried to explain to a client why their “AI on our data” project needs a security model, this is the version of the story that holds together. The agent inherits the permissions you already enforce, so nobody has to build a parallel one.</p><h3><strong>4. Warehouse CI/CD gets a new item definition (GA)</strong></h3><p>If you run Fabric Warehouse through Git, this is the most consequential change in the release, and it went almost unmentioned outside the release notes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRTKFIk3w50JOTaKnLfbcQ.png" /><figcaption>image from community fabric</figcaption></figure><p>Microsoft updated the DacFx engine that underpins schema comparison, Git integration and deployment pipelines. DacFx builds a declarative model of the warehouse and works out the changes needed to move safely between dev, test and production. Two things improve as a result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*bcd5PHV34TYNv69bm5CC9A.png" /><figcaption>image from community fabric</figcaption></figure><p><strong>**Git integration now uses DacFx-based incremental extraction.</strong> Commits are cleaner and more focused, because only relevant schema differences are applied rather than the whole warehouse definition being rewritten. Anyone who has reviewed a Fabric warehouse pull request full of spurious churn will appreciate this immediately.</p><p><strong>Deployment pipelines</strong> use the updated model for more accurate comparisons and better deployment plans, with settings tuned for schema evolution.</p><p>The delivery mechanism is a new <strong>warehouse item definition version 2.0</strong>. It updates the SQL project SDK, moves shared queries into a .sharedqueries folder, adds project-level Git configuration, and re-extracts object definitions so that constraints, identity columns and clustering are properly represented.</p><p><strong>What to do:</strong> treat the upgrade as a scheduled change rather than an incidental one. Re-extraction means your next commit after adopting v2.0 will be large by definition. Do it on a quiet branch, review the diff properly, and get it merged before anyone starts a feature branch on top of the old layout.</p><h3><strong>5. Workspace Relations API closes the CI/CD loop (GA)</strong></h3><p>New API endpoints let you create, query, update and delete relationships between Fabric workspaces programmatically. On paper that sounds like plumbing. In practice it removes the last manual step from branch-based development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*P_1H8ozJ-rt1Tf_C48DspQ.png" /></figure><p>The workflow Microsoft describes is the one most mature Fabric teams have been assembling by hand. A developer creates a feature branch. An Azure DevOps pipeline or GitHub Action provisions a feature workspace, configures Git, applies the correct settings and permissions, and synchronises it. The Workspace Relations API then links that feature workspace back to its parent, so the parent-child link becomes a first-class, queryable object instead of a naming convention you hope everyone follows.</p><p>Worth pairing with a governance change also announced in August. From <strong>1 December 2026</strong>, users without read-write permissions on workspace items will not be able to use Git integration, deploy a workspace, or assign a workspace to a deployment pipeline stage. If your release process depends on someone with viewer-level access triggering a deployment, that process has a shelf life.</p><p>&gt; IMAGE: Branch-based CI/CD flow. Developer branch, pipeline provisions feature workspace, Git sync, Workspace Relations API links to parent, pull request, merge, deployment pipeline promotion through dev, test and production.</p><p>&gt; Caption: The Workspace Relations API makes the parent link explicit rather than implied.</p><h3><strong>6. Direct Lake composite models land in web modelling (GA)</strong></h3><p>On the BI side, Direct Lake on OneLake now supports composite models properly. You can mix Direct Lake tables with Import and DirectQuery tables in a single semantic model, and you can convert individual Direct Lake tables to Import storage mode directly in Power BI web modelling. Select one or more tables, change Storage mode in the Properties pane, and the modelling flow walks you through it.</p><p>This quietly settles a long-running architecture argument. The standard objection to Direct Lake on OneLake was that SQL views forced you onto Direct Lake on SQL. That no longer holds. Add the view as an Import or DirectQuery table inside the composite model and keep Direct Lake on OneLake for everything else, with its OneLake security compatibility and extra modelling features intact.</p><p>August also brought more granular semantic model refresh controls, which is a small change with a real cost impact if you have been running full refreshes because partial ones were awkward to express.</p><h3><strong>Also worth knowing</strong></h3><p><strong>OneLake resource instance rules</strong> are now ready for production. Workspace admins can allowlist trusted Azure resource instances by resource ID, so inbound public access to OneLake is governed by Azure resource identity rather than by IP range. It coexists with Private Link and IP firewall rules. If you have ever maintained an allowlist for a managed Azure service with dynamic outbound IPs, this is the fix.</p><p><strong>Real-Time Intelligence</strong> extended anomaly detection to Eventhouse shortcut tables, so federated and external sources can be monitored without duplicating data first.</p><h3><strong>The short version</strong></h3><p>Four things to do this month.</p><p>1. Test Runtime 2.0 in a sandbox environment before the late-September default switch.</p><p>2. Audit any code calling the OpenAI Assistants API against Fabric data agents, and re-plan anything that ran through Copilot in Power BI.</p><p>3. Schedule the warehouse item definition v2.0 upgrade as a deliberate, reviewed commit.</p><p>4. Check whether anyone in your release process relies on read-only access to deploy, ahead of the 1 December permission change.</p><p>The pattern across all six items is the same one Fabric has followed all year. The platform is being hardened for teams that ship to production. Cleaner Git diffs, queryable workspace relationships, identity-based network rules and a modern Spark runtime are not exciting features. They are the ones you notice when they are missing.</p><h3><strong>Sources</strong></h3><p>- [<a href="https://community.fabric.microsoft.com/blog/fbc_fabricupdatesblogs/fabric-august-2026-feature-summary/5325824">Fabric August 2026 Feature Summary</a>]</p><p>- [<a href="https://community.fabric.microsoft.com/blog/fbc_pbiupdatesblog/power-bi-august-2026-feature-summary/5348434">Power BI August 2026 Feature Summary</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/data-engineering/runtime-2-0">Runtime 2.0 in Fabric</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/data-engineering/runtime">Apache Spark runtime in Fabric</a>]</p><p>- [<a href="https://community.fabric.microsoft.com/blog/fbc_fabricupdatesblogs/retirement-of-fabric-data-agent-integration-in-copilot-in-power-bi/5328344">Retirement of Fabric data agent integration in Copilot in Power BI</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/data-science/fabric-data-agent-sdk">Fabric data agent Python SDK (preview)</a>]</p><p>- [<a href="https://community.fabric.microsoft.com/blog/fbc_fabricupdatesblogs/fabric-data-agents-in-microsoft-copilot-studio-generally-available/5362882">Fabric Data Agents in Microsoft Copilot Studio (Generally Available)</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/data-warehouse/git-integration">Git Integration for Fabric Warehouse Development</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-manage-inbound-access-trusted-resources">Manage inbound access to OneLake with Resource Instance Rules</a>]</p><p>- [<a href="https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-overview">Direct Lake overview</a>]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27cb75c49ac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rung 4: The Meter Is Running — Datasphere Premium Outbound, Fabric Mirroring, and the Price of…]]></title>
            <link>https://medium.com/@SQLShark/rung-4-the-meter-is-running-datasphere-premium-outbound-fabric-mirroring-and-the-price-of-32cb1d4c8cd4?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/32cb1d4c8cd4</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 13:20:34 GMT</pubDate>
            <atom:updated>2026-07-24T13:20:34.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>Rung 4: The Meter Is Running — Datasphere Premium Outbound, Fabric Mirroring, and the Price of Peace of Mind</h3><p><em>SAP to Microsoft Fabric: The Cost Ladder — Part 5 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ih-FmbcUmmuplF4OT8vOyA.png" /></figure><p>Every rung so far has been a trade. Rung 1 traded capability for price. Rung 2 traded licensing certainty for consumption pricing. Rung 3 traded a licence fee for a quiet life. Rung 4 is the trade running the other way entirely: you buy the one architecture that both SAP and Microsoft will jointly point at, the one your auditors will wave through without looking up — and in exchange, you get into a taxi with the meter running. The ride is smooth. The driver is licensed. And the meter ticks over for every gigabyte that leaves SAP, today, tomorrow, and every day after that.</p><p>Whether that’s a good deal depends, as taxi rides do, on how far you’re going and how often.</p><h3>The two-step</h3><p>Since late 2025, Microsoft and SAP have converged on a two-step pattern, productised in Fabric as <strong>Mirroring for SAP Datasphere</strong> — generally available since early 2026 — with <strong>Copy Job for SAP Datasphere</strong> as its more controllable sibling.</p><p>Step one belongs to SAP. A <strong>Datasphere replication flow</strong>, using <strong>Premium Outbound Integration</strong>, extracts the initial snapshot and every subsequent change record from the source — S/4HANA, ECC, BW/4HANA, BW, or Datasphere’s own artefacts — and lands it all in an <strong>ADLS Gen2 container</strong> as parquet. The detail that surprises people: the source can be the underlying SAP system <em>directly</em>. Nothing has to be modelled or persisted inside Datasphere first. Datasphere here is plumbing, not a destination.</p><p>Step two belongs to Microsoft. <strong>Fabric’s mirroring engine</strong> watches that container and continuously merges inserts, updates and deletions into <strong>mirrored database tables in OneLake</strong> — Delta format, instantly queryable through the SQL endpoint, Spark, and Power BI Direct Lake. No pipelines. No notebooks. No fleet of VMs humming in the middle.</p><p>Prefer more control over destination and schedule? <strong>Copy Job</strong> drinks from the same landed change data and puts it wherever you point it. Only need to <em>read</em> the files? A plain <strong>OneLake shortcut</strong> onto the container is the minimalist’s version — the pattern I covered as a deep dive in an earlier article.</p><h3>The bill, and its unusual shape</h3><p>Here’s what makes Rung 4 financially odd: the Microsoft half is nearly free, and the SAP half is the meter.</p><p>On the Fabric side, the compute that replicates your data into OneLake costs nothing. Mirroring storage is free up to a capacity-based limit. There are no ingress fees. You pay normal rates only when you <em>query</em>. By Microsoft pricing standards this is practically philanthropic — which tells you where the money went instead.</p><p>Because on the SAP side, <strong>Premium Outbound Integration is metered on data leaving SAP</strong>, purchased as Datasphere capacity units, stacked on top of a Datasphere tenant if you don’t already run one. And I’ll say the important part plainly rather than hiding it in a footnote: the cost scales with volume, <em>forever</em>. A wide, high-churn transactional table replicated continuously generates outbound volume every single day of its life. Before you sign anything, model a realistic month of change volume — not just the flattering initial load — through SAP’s capacity unit estimator and your commercial agreement. I won’t quote figures because they’re estate-specific and negotiated, but the shape of the curve matters more than any number: it only goes up and to the right.</p><p>Which changes how you think about design. Every replicated column you don’t use is money. Every table someone added “just in case” is a standing order. On this rung, column selection stops being hygiene and becomes cost engineering — possibly the only rung on the ladder where a code review can show up on next quarter’s invoice.</p><p>Everything else is refreshingly light. No SHIR, no extraction server; an ADLS account and whatever connectivity Datasphere needs to reach an on-premises source. Operations are configured, not coded. The scarce skill is knowing <em>what</em> to replicate, not how.</p><h3>Where it pinches</h3><p>The meter never stops — that’s the big one, said twice on purpose. Flat-fee alternatives get relatively cheaper as volumes grow; this one doesn’t, and for very large, high-churn estates it’s the rung where the finance review gets quiet and uncomfortable. The exact crossover against a Rung 3 licence depends entirely on your negotiated rates, which is precisely why I keep refusing to invent a number for it.</p><p>It’s also a young surface. GA arrived only in early 2026, and the current limitations are prescriptive — replication flow targets must be parquet with group delta set to none, and the object list is managed on the Datasphere side. Read the limitations page before you design, not after, and re-check pricing terms as the offering matures.</p><p>And a gentle deflation of the marketing: the mirrored tables are replication targets, not a modelled layer. Everything I’ve written elsewhere about surrogate keys still applies with full force — MANDT in the composite keys, ALPHA conversion drift, SCD handling, all of it. Mirroring feeds bronze. Silver and gold remain, as ever, your job. The plumbing got prettier; the water still needs treating.</p><p>There’s also now a second control plane in your life — Datasphere tenants, spaces, monitoring. Small. Real.</p><h3>Where it sits with SAP</h3><p>The cleanest on the ladder, and that is the entire pitch. This is SAP’s designated route out of ABAP systems after Note 3255746, built jointly with Microsoft. No ambiguity to document, no awkward RFP questions, nothing for an audit to find. Part of what the meter buys is exactly that silence.</p><p>One forward-looking fact for your roadmap: <strong>SAP Business Data Cloud integration for Fabric arrives during 2026</strong>, extending this partnership toward zero-copy sharing between BDC and OneLake. Judgement call: if your organisation is already heading into BDC, be measured about how much Datasphere-specific plumbing you pour concrete around this year. The direction of travel is convergence, and the sanctioned path is still being paved a few metres ahead of where you’re standing.</p><h3>Closing the ladder</h3><p>Five posts on, the pattern is hard to unsee: every rung converts a different resource into data movement. Rung 1 spends capability. Rung 2 spends engineering effort and swallows licensing ambiguity. Rung 3 spends licence budget to buy simplicity. Rung 4 spends per-gigabyte to buy sanction.</p><p>There is no correct rung. There is only the cheapest rung that satisfies <em>your</em> requirements for freshness, fidelity, governance and volume. Start at the bottom. Climb only when a requirement shoves you. And write down why you stopped where you stopped — because future-you, sitting in a licence review or a capacity planning meeting eighteen months from now, will either thank you or invoice you.</p><h3>References</h3><ol><li><a href="https://learn.microsoft.com/en-us/fabric/mirroring/sap">Microsoft Fabric mirrored databases from SAP</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/fabric/mirroring/sap-datasphere-tutorial">Tutorial: Configure Microsoft Fabric mirrored databases to mirror SAP via SAP Datasphere</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/fabric/mirroring/sap-limitations">Limitations in Microsoft Fabric mirrored databases from SAP</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/fabric/data-factory/copy-job-tutorial-sap-datasphere">Tutorial: Copy job with SAP Datasphere Outbound</a> — Microsoft Learn</li><li><a href="https://blog.fabric.microsoft.com/en-us/blog/announcing-sap-connectivity-with-mirroring-and-copy-job-in-microsoft-fabric/">Advancing SAP Connectivity in Microsoft Fabric</a> — Microsoft Fabric Blog</li><li><a href="https://techcommunity.microsoft.com/blog/sapapplications/sap-on-azure-product-announcements-summary-%E2%80%93-sap-sapphire-2026/4517634">SAP on Azure Product Announcements Summary — SAP Sapphire 2026</a> — Microsoft Tech Community</li><li><a href="https://learn.microsoft.com/en-us/azure/sap/workloads/extract-sap-data">Extract SAP data to Microsoft Fabric</a> — Microsoft Learn</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32cb1d4c8cd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rung 3: Call a Specialist — Why a Licence Fee Can Be the Cheapest Line on the Invoice]]></title>
            <link>https://medium.com/@SQLShark/rung-3-call-a-specialist-why-a-licence-fee-can-be-the-cheapest-line-on-the-invoice-272d8315f725?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/272d8315f725</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 13:17:36 GMT</pubDate>
            <atom:updated>2026-07-24T13:21:08.260Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SAP to Microsoft Fabric: The Cost Ladder — Part 4 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdkANNZdmpKb0s3OQagFMA.png" /></figure><p>There’s a reflex in Microsoft-shop data teams that treats a third-party licence fee as a small personal failure — as if reaching for a specialist tool means you weren’t clever enough with the native stack. I understand the reflex. I’ve had the reflex. It’s also how people end up re-plumbing their own bathroom, and the story always ends the same way: standing in ankle-deep water, phoning the person they should have phoned in the first place.</p><p>Fifteen-odd years of SAP extraction vendors staying comfortably in business is not an accident. Rung 3 is where you pay a known annual fee to turn a hard, sharp-edged problem into a product feature with a support desk behind it. Some days that’s the smartest money on the whole ladder.</p><h3>The shape of the thing</h3><p>The recognisable names — <strong>Theobald Xtract Universal</strong>, <strong>dab Nexus</strong>, <strong>SNP Glue</strong>, <strong>Qlik</strong>, <strong>Fivetran</strong> — differ in emphasis, but the architecture rhymes across all of them.</p><p>An <strong>extraction server or agent</strong> (self-hosted or SaaS, vendor depending) connects to SAP through mechanisms the vendor stands behind: RFC-based table reads, delta-capable CDS view consumption, or the vendor’s own ABAP components installed in your system — implementing change capture <em>inside</em> the one place your licence unambiguously lets code run. The extracted data — initial loads plus deltas — lands in <strong>OneLake, ADLS Gen2 or Azure SQL</strong> in open formats.</p><p>And then there’s the pattern that’s made this rung genuinely interesting lately: <strong>Fabric Open Mirroring</strong>. The vendor writes change files into a mirrored database’s landing zone, and Fabric’s own replication engine continuously merges them into Delta tables in OneLake. Your extraction tool becomes a mirroring source; Fabric does the merging; and your raw layer requires approximately zero lines of notebook code. dab and Simplement were the first partners live on this pattern, with Theobald advertising it too. Extraction as someone else’s product, merging as Microsoft’s problem — there is an elegance to that division of labour.</p><p>Downstream of the landing zone, everything is ordinary Fabric. The SAP weirdness has been contained at the border, which is precisely where you want weirdness contained.</p><h3>The bill</h3><p>The headline item is the licence, and I’m going to disappoint you: I won’t quote figures, because there mostly aren’t any to quote. Pricing runs per source system, per volume, per connector, or per SaaS tier, and nearly all of it is quotation-based. Plan for a meaningful five-figure annual sum at enterprise scale, take the procurement exercise seriously, and remember that volume tiers and multi-year terms move these numbers a lot more than the first quote suggests.</p><p>Infrastructure is modest — typically one extraction VM, sometimes none if the vendor hosts. Some tools install ABAP transports in your SAP system, which costs change-management ceremony rather than money.</p><p>But here’s the underrated financial property, the one worth walking into your CFO’s office with: the cost curve is <em>flat</em>. A fixed licence plus a small VM produces spend that does not slope upward with data volume, which is exactly what the metered alternatives cannot say. Your finance team can put it in a budget line and forget it exists. Never underestimate how much goodwill a forgettable budget line buys.</p><p>People cost is the lowest on the ladder — these products exist so a competent data engineer without deep SAP internals can configure extractions through a UI, with a support contract underneath. That is, quite literally, what you’re paying for.</p><h3>Where it pinches</h3><p>You’ve added a vendor to your critical path, with everything that implies: their roadmap, their support quality, their odds of being acquired by someone you like less. Do the due diligence on the company as thoroughly as on the software.</p><p>You’ve also added another server to patch, monitor and secure, and one more place credentials live. Small, not zero.</p><p>And the convenience layer occasionally hides sharp edges — cluster and pool tables on elderly ECC systems, ALPHA conversion quirks, wide-table performance cliffs. My rule: run the proof of concept on <em>your</em> ugliest tables, not the vendor’s suspiciously well-behaved demo dataset. Everyone’s tool works on the demo dataset.</p><p>One inversion to respect: at genuinely small scale — a handful of modest tables, relaxed cadence — the licence fee can dwarf what Rungs 1 or 2 would cost outright. The ladder assumes you have a real workload. If you don’t, stay downstairs.</p><h3>Where it sits with SAP</h3><p>This rung’s story changed materially because of Note 3255746, so — facts first.</p><p><strong>Fact:</strong> the note restricts third-party use of ODP replication APIs, which had been the backbone of several of these tools — and a 2026 update ships a security patch that, once installed, actively blocks third-party ODP RFC calls. <strong>Fact:</strong> the major vendors have responded in public, repositioning around extraction paths that don’t touch the restricted APIs — their own in-system change capture, RFC and table-based approaches, delta-capable CDS consumption — and they market their Fabric offerings on exactly that basis.</p><p><strong>Judgement call:</strong> this is now a procurement question with a legal flavour, and your RFP should say so out loud. Three questions, verbatim if you like: <em>Which extraction mechanisms does the tool use, per source type? Which of those does the vendor warrant as compliant with current SAP guidance? And what happens contractually if SAP’s position shifts again?</em> A good vendor answers all three crisply, in writing. An evasive answer is itself data — arguably the most useful data in the whole RFP.</p><p>The usual footnote applies here as everywhere: extraction method doesn’t exempt you from SAP’s indirect/digital access licensing on downstream use. Settle it with your account team, in writing, while everyone’s still friends.</p><h3>Verdict</h3><p>For mid-to-large enterprises that are serious about SAP data in Fabric but not staffed like an SAP consultancy, Rung 3 is my most frequent recommendation on the whole ladder. Take it when your volumes are significant and the flat cost curve starts beating the meters; when your team’s strength is Fabric and Azure rather than ABAP; and when the Open Mirroring pattern — continuous merge into OneLake, near-zero pipeline code — describes the operating model you actually want to live with.</p><p>Skip it if your estate is small enough that the licence dwarfs the workload, or if policy has already mandated the fully SAP-sanctioned route. Which, handily, is the top rung — and the meter is already running.</p><p><strong>Next up:</strong> <a href="https://medium.com/@SQLShark/rung-4-the-meter-is-running-datasphere-premium-outbound-fabric-mirroring-and-the-price-of-32cb1d4c8cd4?sharedUserId=SQLShark">Rung 4</a> — Datasphere Premium Outbound and Fabric Mirroring: the sanctioned path, and the price of peace of mind.</p><h3>References</h3><ol><li><a href="https://blog.fabric.microsoft.com/en-US/blog/open-mirroring-for-sap-sources-dab-and-simplement-2/">Open Mirroring for SAP sources — dab and Simplement</a> — Microsoft Fabric Blog</li><li><a href="https://theobald-software.com/en/destinations/microsoft-fabric">SAP Integration with Microsoft Fabric — Xtract Universal</a> — Theobald Software</li><li><a href="https://www.dab-europe.com/en/solutions/sap-data-integration-in-microsoft-fabric/">SAP Data Integration in Microsoft Fabric — dab Nexus</a> — dab GmbH</li><li><a href="https://powerdobs.nl/sap-data-integratie-met-interdobs/">Data integration with SAP Datasphere and Azure Open Mirroring</a> — Powerdobs</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-introduction-architecture">Overview and architecture of the SAP CDC capabilities</a> — Microsoft Learn</li><li>SAP Notes 3255746 and 3439624 — SAP for Me (S-user login required)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=272d8315f725" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rung 2: The Workhorse — Real Deltas, a Delta Queue, and a Note That Changed the Weather]]></title>
            <link>https://medium.com/@SQLShark/rung-2-the-workhorse-real-deltas-a-delta-queue-and-a-note-that-changed-the-weather-e968fc440e0e?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e968fc440e0e</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 05:46:46 GMT</pubDate>
            <atom:updated>2026-07-24T13:18:19.014Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SAP to Microsoft Fabric: The Cost Ladder — Part 3 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nxe5w8RIhqSi_cfLm-r4Hw.png" /></figure><p>Deletions are where SAP data extraction goes to be humbled. Anyone can copy a table. Copying a table <em>and knowing which rows quietly disappeared since Tuesday</em> is the actual job, and it’s the moment the words “we’ll just do it with the built-in connectors” die in the meeting room. Welcome to Rung 2: the first rung where you get genuine change data capture, and you get it without buying a product — just infrastructure you meter by the hour.</p><p>For years, this was the default answer, the workhorse of a thousand Azure data platforms. It still earns its oats. But in 2026, it comes with a plot twist, and I’d be doing you a disservice if I saved it for the end. So consider this your spoiler warning: read the licensing section before you commit to anything.</p><h3>How the workhorse works</h3><p>The ADF SAP CDC connector rides SAP’s own plumbing: the <strong>Operational Data Provisioning (ODP)</strong> framework. Think of ODP as a ledger the source system keeps on your behalf — every insert, update and deletion is recorded in a delta queue, and every subscriber collects only what changed since its last visit. It’s the same machinery SAP uses to feed BW, which is why the connector’s reach is so good: the classic S-API extractors (2LIS and family, carrying decades of embedded business logic you’d otherwise rebuild by hand), delta-annotated CDS views, SLT-replicated tables, BW objects.</p><p>Four moving parts, as the diagram shows. A <strong>self-hosted integration runtime</strong> — a Windows VM with the SAP .NET connector on it, parked where it can see your application servers. An <strong>ADF mapping data flow</strong> with the SAP CDC source, which handles the ODP subscription, the checkpoints, and the delta bookkeeping, so you don’t have to. A <strong>landing zone</strong> — ADLS Gen2 or a lakehouse via OneLake, written as Delta and partitioned for the merge. And a <strong>Fabric shortcut</strong> to surface the landed files without copying them again.</p><p>My habit is to treat the connector’s output as the rawest edge of bronze. Land the change records faithfully, warts and ODQ_CHANGEMODE flags and all, then let Spark notebooks do the grown-up work in silver and gold — merges, surrogate keys, conformance — where you control the semantics and can test them.</p><h3>The bill</h3><p>No licence for the connector itself; ADF is pay-as-you-go. The fixed cost is the SHIR VM, and size it honestly — SAP CDC data flows get hungry during big initial loads, and production wants two nodes. The variable cost is mapping data flow vCore-hours, and here’s the shape to remember: frequent small deltas are cheap; the expensive events are initial loads and <em>re-initialisations</em>. Over a multi-year programme a delta subscription will eventually break — a transport, a patch, an enthusiastic basis colleague — and the re-init of a wide table is the cost spike you should have already budgeted.</p><p>The people cost is moderate but distinctly SAP-flavoured. Someone has to pick the right ODP sources, and that means knowing why a mature 2LIS extractor is a gift, which CDS views carry proper delta annotations, and why MANDT is about to complicate your key strategy. This is the rung where data engineering and SAP basis need to be in the same meetings, ideally voluntarily.</p><h3>Where it creaks</h3><p>It’s a scheduled micro-batch. Sub-hourly, fine; sub-minute, wrong tool, stop asking.</p><p>More importantly, ODP subscriptions are <em>stateful</em>, and state is a promise that something will eventually break it. Build monitoring for subscription health on day one — because the failure mode isn’t a red pipeline, it’s a delta queue going quietly stale while every dashboard stays green. Discovering three weeks of missing changes on a Friday afternoon is an experience I can describe in detail, and would rather not repeat.</p><p>And remember the extraction work runs <em>on your SAP application servers</em>. Aggressive parallelism during business hours is the fastest known method for turning a basis team into an enemy.</p><h3>The plot twist: where this sits with SAP</h3><p>Facts first, inference clearly labelled. That’s the deal in this series, and this section is why the deal exists.</p><p><strong>Fact:</strong> SAP Note 3255746 restricts the use of ODP’s replication APIs by customer-built and third-party applications, and SAP positions Datasphere as the strategic, supported delta-extraction route.</p><p><strong>Fact:</strong> a 2026 update to the note announces a security patch that, once installed in your SAP system, blocks incoming ODP RFC calls from third-party clients — and Microsoft’s own documentation explicitly names the ADF SAP CDC connector as affected, advising customers to review the note (together with SAP Note 3439624) <em>before</em> installing the patch, and pointing at unaffected alternatives, including Mirroring for SAP Datasphere, now generally available.</p><p><strong>Judgement call, flagged as such:</strong> existing pipelines keep working until that patch lands in your system — which puts the timeline partly in your own basis team’s hands, an oddly intimate place for an architectural risk to live. If you’re already running this connector at scale, that argues for coordinating patch decisions with basis, writing the position down, and keeping a costed exit path in the roadmap. If you’re starting a greenfield build in 2026, it argues harder: I wouldn’t found a new architecture on Rung 2 today without an explicit, time-boxed plan to climb off it. Either way — never let this surprise you in a licence audit or a patch cycle. Surprises in patch cycles are how architectures end.</p><h3>Verdict</h3><p>The workhorse still earns its keep when you need real deltas — deletions included — at daily-to-hourly cadence, when your organisation is Azure-native and allergic to new licence lines, and when the extractor logic buried in your BW estate is an asset worth reusing rather than rewriting. It’s the wrong horse if your governance posture can’t stomach the ODP situation, or if nobody on the team speaks fluent SAP — in which case the next rung was built precisely for you: tools that make SAP extraction somebody else’s product problem.</p><p><strong>Next up:</strong> <a href="https://medium.com/@SQLShark/rung-3-call-a-specialist-why-a-licence-fee-can-be-the-cheapest-line-on-the-invoice-272d8315f725?sharedUserId=SQLShark">Rung 3</a> — why paying a specialist can be the cheapest line on the invoice.</p><h3>References</h3><ol><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-introduction-architecture">Overview and architecture of the SAP CDC capabilities</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-prerequisites-configuration">Prerequisites and setup for the SAP CDC connector</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-shir-preparation">Set up a self-hosted integration runtime for the SAP CDC connector</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/change-data-capture-from-sap-to-onelake-with-azure-data-factory">Change data capture from SAP to Microsoft Fabric with Azure Data Factory</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-management">Manage the SAP CDC process</a> — Microsoft Learn</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/connector-sap-change-data-capture">Transform data from an SAP ODP source with the SAP CDC connector</a> — Microsoft Learn</li><li>SAP Notes 3255746 and 3439624 — SAP for Me (S-user login required)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e968fc440e0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rung 1: The Connectors You Already Own (and the Small Print on “Free”)]]></title>
            <link>https://medium.com/@SQLShark/rung-1-the-connectors-you-already-own-and-the-small-print-on-free-b534ce97a9c9?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b534ce97a9c9</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 21:20:12 GMT</pubDate>
            <atom:updated>2026-07-24T13:14:35.433Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SAP to Microsoft Fabric: The Cost Ladder — Part 2 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRDLkr3e5avntyS0wBoY2w.png" /><figcaption>Built In SAP to Fabric Connectors</figcaption></figure><p>Before you buy anything, open the box you already have. Fabric ships with SAP connectivity in it, the way a new flat ships with a boiler — unglamorous, already paid for, and perfectly capable of keeping you warm if your demands are reasonable. For a surprising number of organisations, Rung 1 isn’t the compromise option. It’s simply the answer.</p><p>It’s also the rung most likely to be dismissed too quickly, usually by someone who stands to sell you a rung further up. So let’s give it a fair hearing.</p><h3>What’s actually in the box</h3><p>Four doors into SAP, all opening through the on-premises data gateway:</p><p>The <strong>SAP HANA connector</strong> reads calculation views on HANA or HANA Cloud. If your organisation spent the last decade building a proper calc view layer — and plenty did, as the semantic backbone for their previous BI tool — this connector inherits all that work for nothing. KPI definitions, currency logic, and analytic privileges: it all comes along like furniture in a house sale.</p><p>The <strong>SAP BW connectors</strong> (Application Server and Message Server flavours) talk to BW’s multidimensional layer. You’re querying InfoProviders and BW queries, which means twenty years of somebody else’s carefully argued business logic arrives pre-assembled. Never underestimate the value of business logic that has already survived twenty years of finance sign-off.</p><p>The <strong>OData connector</strong> is the universal door. S/4HANA exposes hundreds of standard OData services and will generate custom ones on request. It is not fast. It was never going to be fast. But it is <em>always there</em>, which counts for something on day one of a proof of value.</p><p>And if Datasphere is already in the estate, its views can be read over <strong>ODBC</strong> — including straight from a Fabric Spark notebook, which is a pleasingly direct trick.</p><p>Wire any of these into a <strong>Dataflow Gen2</strong> for low-code ingestion or a <strong>pipeline copy activity</strong> for bulk moves, land the result in a lakehouse, and you’re done. That’s the entire architecture. The diagram above is honestly the whole story.</p><h3>The bill</h3><p>No new licences — Fabric capacity you already pay for, plus an SAP named user for the service account. One gateway VM (two, clustered, if you’re sensible about production). And Fabric capacity units, which deserve a moment of respect: Dataflow Gen2 is not the most frugal artefact Microsoft ever shipped, and heavy refreshes on a small capacity will make themselves felt in ways your Power BI users will describe loudly. Budget headroom, not licence fees.</p><p>The people cost starts near zero. A Power BI-literate team can build this without a single SAP specialist in the room. Hold that thought, though, because the people cost doesn’t stay at zero. It’s merely hiding.</p><h3>Where “free” runs out</h3><p>Three ceilings. Most organisations hit at least one, and the trick is knowing which one before you’ve built on top of it.</p><p><strong>First: there is no change data capture here.</strong> These connectors do full extracts. You can fake incremental loads with watermark logic against a date column, and I’ve watched teams spend weeks doing exactly that, and I want you to learn from their suffering: SAP tables are hostile terrain for watermarks. Deletions leave no trace — a record vanishes from the source and your copy simply never finds out, like a friend who moved abroad without telling anyone. Half the core tables lack a trustworthy change timestamp anyway. If you need real deltas from high-churn transactional tables, Rung 1 quietly turns into an engineering project wearing a low-code costume.</p><p><strong>Second: you’re reading the modelled layer, not the raw one.</strong> The BW and HANA connectors serve you cubes and views — brilliant when the modelling answers your questions, a trap when you need base-table granularity the cubes never exposed. My standing advice applies double here: stage SAP data into an intermediate layer rather than pointing reports at live BW/MDX connections. The multidimensional layer is a fine place to <em>consume</em>; it’s a poor foundation to <em>build</em> on.</p><p><strong>Third: volume.</strong> OData in particular starts wheezing past a few million rows per run. Overnight windows fill up. And when a five-hour full load dies at hour four, there’s no restart-from-delta safety net — there’s just hour zero again, and an increasingly philosophical mood in the morning stand-up.</p><h3>The licensing bit (mercifully short)</h3><p>This is Rung 1’s quiet superpower: it’s clean. Everything here consumes SAP through interfaces SAP built <em>for</em> consumption — OData services, HANA views, BW queries. SAP Note 3255746 is about ODP replication APIs, and nothing on this rung goes anywhere near them. The one thing worth settling in writing with your SAP account team is indirect/digital access licensing for the downstream use of extracted data — a contractual question, not a technical one, and cheap to answer before go-live and expensive after. That last sentence is prudence, not a claim about your particular contract.</p><h3>Verdict</h3><p>Take Rung 1 seriously when your BW queries or HANA views already answer the business questions, and Fabric’s job is unification and distribution rather than re-engineering; when the cadence is daily-or-slower, and the volumes are civilised — master data, finance snapshots, reference tables; or when you want SAP data in OneLake this week for a proof of value, not this quarter.</p><p>Walk away from it the moment the requirements say <em>deletions</em>, <em>near-real-time</em>, or <em>raw tables at volume</em>. Past that point, the hand-rolled watermark machinery costs more in engineering hours and 2 a.m. incident tickets than the next rung costs in ADF consumption. Which is convenient, because the next rung is exactly where we’re going.</p><p><strong>Next up:</strong> <a href="https://medium.com/@SQLShark/rung-2-the-workhorse-real-deltas-a-delta-queue-and-a-note-that-changed-the-weather-e968fc440e0e?sharedUserId=SQLShark">Rung 2 </a>— ADF’s SAP CDC connector, real deltas at last, and a licensing plot twist.</p><h3>References</h3><ol><li><a href="https://community.fabric.microsoft.com/t5/Fabric-Updates-Blog/Integrate-your-SAP-data-into-Microsoft-Fabric/ba-p/5172096">Integrate your SAP data into Microsoft Fabric</a> — Microsoft Fabric Blog</li><li><a href="https://learn.microsoft.com/en-us/azure/sap/workloads/extract-sap-data">Extract SAP data to Microsoft Fabric</a> — Microsoft Learn</li><li><a href="https://dataciders.com/en/fachbeitrag/integration-sap-quellen-in-microsoft-fabric/">Integration of SAP sources in Microsoft Fabric</a> — Dataciders</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b534ce97a9c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The SAP-to-Fabric Cost Ladder: Four Ways to Move Your Data, from Cheapest to Most Expensive]]></title>
            <link>https://medium.com/@SQLShark/the-sap-to-fabric-cost-ladder-four-ways-to-move-your-data-from-cheapest-to-most-expensive-f8e63a07a94a?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8e63a07a94a</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 20:51:48 GMT</pubDate>
            <atom:updated>2026-07-21T21:20:41.204Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SAP to Microsoft Fabric: The Cost Ladder — Part 1 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtnzZDSzSwHHhR-ji_VJgQ.png" /><figcaption>Diagram</figcaption></figure><p>Somewhere around the forty-minute mark of every SAP-to-Fabric workshop I’ve ever sat in, the same thing happens. The architects have had their fun. The whiteboard is a beautiful mess of lakehouses and arrows. And then the person who actually signs the invoices leans forward and asks the only question that was ever really on the agenda:</p><p>“Right. What’s this going to cost us?”</p><p>Silence. Someone offers to “take that offline”. Nobody ever does.</p><p>I wrote earlier about the S/4HANA-to-Fabric connectivity landscape, including the architectural families and their respective roles. This series is the money version of that article. I’ve explored every mainstream method of integrating SAP data into Microsoft Fabric and ranked them on a single ladder, with the cheapest rung at the bottom and the most expensive at the top. One post per rung. Each one comes with a data flow diagram you’re welcome to steal (a credit would be lovely), the failure modes I’ve actually seen, and a straight answer about who should climb that far and who should stay put.</p><h3>The ladder, from the bottom up</h3><p><strong>Rung 1</strong> is the stuff you already own: Fabric’s built-in connectors for SAP HANA, BW and OData, talking through the on-premises data gateway. No new licences. No new kit beyond a gateway VM. Your only real spend is Fabric capacity that’s already on the bill.</p><p><strong>Rung 2</strong> is Azure Data Factory’s SAP CDC connector — proper change data capture over SAP’s ODP framework, run through a self-hosted integration runtime. You start paying by the vCore-hour, and in exchange, you finally get deltas. Including deletions, which is where cheaper methods go to be humbled.</p><p><strong>Rung 3</strong> is where you admit the problem is hard and pay someone whose whole business is solving it: Theobald, dab, SNP Glue, Qlik, Fivetran and friends. A licence fee appears on the invoice — and, counterintuitively, it’s often the cheapest thing on it.</p><p><strong>Rung 4</strong> is the route SAP and Microsoft will both smile at: Datasphere replication flows pushing data into ADLS Gen2 via Premium Outbound Integration, with Fabric’s Mirroring for SAP Datasphere merging it into OneLake. Immaculate from a licensing standpoint. Metered by the gigabyte, forever.</p><h3>Why order by cost and not by capability?</h3><p>Because capability-first comparisons quietly assume an unlimited budget, and I have never once met an unlimited budget. In real programmes, the budget gets fixed first, and the architecture has to live inside it. Ordering by cost forces the only conversation worth having: <em>what is the cheapest rung that actually meets your requirements?</em> Sometimes the honest answer is Rung 1, and the integration vendors can go home. Sometimes you sprint straight up to Rung 4 because your compliance team breaks out in hives at anything resembling an undocumented API.</p><p>One caveat, and I’ll be repeating it until you’re sick of me: this ladder describes typical mid-size estates, not the laws of physics. At serious daily volumes, a flat-licensed tool on Rung 3 can undercut Rung 4’s per-gigabyte meter. At trivial volumes, that same meter is pocket change. Total cost of ownership is engineering hours, gateway VMs, licence lines, consumption charges, and the rework bill when a “cheap” method hits its ceiling eighteen months in. I’ve watched that last one eat entire budgets. We’ll break it all down rung by rung.</p><h3>The weather system: SAP Note 3255746</h3><p>You can’t write honestly about this subject in 2026 without talking about the weather, and the weather is SAP Note 3255746. In plain terms, SAP has restricted the use of its ODP replication APIs by customer-built and third-party tools, pointing everyone at Datasphere Premium Outbound Integration as the supported way to get delta data out of an ABAP system. A 2026 update to the note goes further still — it announces a security patch that, once installed in a customer’s system, blocks incoming ODP RFC calls from third-party clients altogether.</p><p>That one note redrew the whole ladder. Extraction methods that were the comfortable default for a decade now carry licensing and support risk that belongs in your decision matrix right next to the pounds and euros. The vendors have re-tooled around non-ODP techniques, Microsoft’s own SAP CDC connector sits in a genuinely interesting position, and the sanctioned alternative keeps getting built out — including SAP Business Data Cloud integration with Fabric, arriving during 2026. Each post in this series says exactly where its method stands relative to the note, and I’m careful to separate what SAP has actually said from what the market has merely inferred. You’d be amazed how much of the discourse is the second thing wearing the first thing’s coat.</p><h3>How the series works</h3><p>Every post follows the same shape, so you can compare like for like: what the thing is (with the diagram), what it costs and which cost dominates, where it breaks, where it sits with SAP’s lawyers, and finally my verdict — the client I’d point at it, and the client I’d physically stand in front of to stop.</p><p>A word on where the opinions come from. This isn’t datasheet tourism. It’s years of hands-on migration work: silver-to-gold PySpark over SAP LIS structures, arguing with currency decimals out of TCURX, and living with these extraction methods in production long after the kick-off cake was eaten. Where I state a fact, I’ll say so. Where it’s a judgment call, I’ll flag it. You deserve to know the difference.</p><p><strong>Next up:</strong> <a href="https://medium.com/@SQLShark/rung-1-the-connectors-you-already-own-and-the-small-print-on-free-b534ce97a9c9?sharedUserId=SQLShark">Rung 1</a> — the connectors you already own, and the small print hiding inside the word “free”.</p><h3>References</h3><ol><li><a href="https://learn.microsoft.com/en-us/azure/sap/workloads/extract-sap-data">Extract SAP data to Microsoft Fabric</a> — Microsoft Learn</li><li><a href="https://community.fabric.microsoft.com/t5/Fabric-Updates-Blog/Integrate-your-SAP-data-into-Microsoft-Fabric/ba-p/5172096">Integrate your SAP data into Microsoft Fabric</a> — Microsoft Fabric Blog</li><li><a href="https://blog.fabric.microsoft.com/en-us/blog/announcing-sap-connectivity-with-mirroring-and-copy-job-in-microsoft-fabric/">Advancing SAP Connectivity in Microsoft Fabric</a> — Microsoft Fabric Blog</li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/sap-change-data-capture-introduction-architecture">Overview and architecture of the SAP CDC capabilities</a> — Microsoft Learn</li><li><a href="https://techcommunity.microsoft.com/blog/sapapplications/sap-on-azure-product-announcements-summary-%E2%80%93-sap-sapphire-2026/4517634">SAP on Azure Product Announcements Summary — SAP Sapphire 2026</a> — Microsoft Tech Community</li><li>SAP Notes 3255746 and 3439624 — SAP for Me (S-user login required)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8e63a07a94a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring my private Nextcloud running on Ubuntu]]></title>
            <link>https://medium.com/@SQLShark/configuring-my-private-nextcloud-running-on-ubuntu-b24c3c8ca03a?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b24c3c8ca03a</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[nextcloud]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 13:14:49 GMT</pubDate>
            <atom:updated>2026-04-06T13:16:56.208Z</atom:updated>
            <content:encoded><![CDATA[<p>Once Nextcloud is running, the temptation is to start uploading files and call it a day. I did that… and then quickly realised the admin panel is where you turn “a working install” into something you can trust long-term.</p><p>This mini-article is basically my runbook: the settings I always review, the apps I actually use (as a D&amp;A person), and the maintenance routine that keeps the server boring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbETo6dZBEVnpIso_IC9CQ.png" /></figure><h3>1) First stop: Admin panel basics (settings that matter)</h3><p>Open Nextcloud and go to:</p><p><strong>Profile icon (top-right) → Administration settings</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*Amosy7V6D3QvlN8JSi-d-A.png" /></figure><h3>A) Background jobs: set to Cron (not AJAX)</h3><p>You already have a cron container; this setting tells Nextcloud to use it.</p><ul><li><strong>Administration settings → Basic settings → Background jobs → Cron</strong></li></ul><p>Why it matters: lots of Nextcloud features rely on background jobs (cleanup, previews, notifications). AJAX is “ok for testing”, cron is what you want for a real server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXhC5ywKFMrA9WDRgWzXcg.png" /></figure><p>Quick verify (CLI):</p><pre>docker exec -u www-data nextcloud php occ config:app:get core backgroundjobs_mode</pre><h3>B) Default phone region &amp; time zone</h3><ul><li><strong>Administration settings → Basic settings</strong></li><li>Default phone region: set your region (helps with contacts)</li><li>Email server: configure if you want password resets, share notifications, etc.</li></ul><p>Even if you don’t run email immediately, setting the basics avoids confusion later.</p><h3>C) Security hardening: 2FA + bruteforce protection</h3><ul><li><strong>Apps → Security</strong></li><li>Enable <strong>Two-Factor TOTP Provider</strong><br>Then:</li><li><strong>Personal settings → Security</strong></li><li>Turn on TOTP for your admin user</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKkXkx4TIpyTR1IQGrKiMw.png" /></figure><p>You can keep the service tailnet-only and still benefit from 2FA — it protects you from mistakes (like leaving a session open on a shared device).</p><h3>D) Logging (set it so debugging is easy)</h3><ul><li><strong>Administration settings → Logging</strong><br>Set log level to something sensible (usually “Warning” or “Info” depending on your appetite).<br>If you’re troubleshooting, bump it temporarily and revert.</li></ul><p>The underlying log file on this setup typically ends up in:</p><ul><li>/srv/nextcloud-data/ncdata/nextcloud.log</li></ul><h3>E) Overview warnings: treat them as a to-do list</h3><ul><li><strong>Administration settings → Overview</strong><br>This screen will surface things like:</li><li>missing DB indices</li><li>background jobs not running</li><li>caching not configured</li><li>HTTPS warnings (expected in a Tailscale-only HTTP setup)</li></ul><p>I periodically scan it after upgrades.</p><h3>2) Apps/extensions I actually add (and why)</h3><p>Nextcloud can become a “platform” quickly, so I keep it practical. As a D&amp;A person, I’m biased toward tools that support workflows, documentation, and intake.</p><h3>My “high ROI” app set</h3><p>You’ll find apps via:<br><strong>Apps → (search &amp; enable)</strong></p><ul><li><strong>Collectives</strong><br>My internal wiki/runbook. Perfect for documenting your homelab: storage layout, restore steps, update cadence, “what to do when X breaks”.</li><li><strong>Deck</strong><br>Lightweight Kanban for infra tasks, content pipeline, or side-project planning.</li><li><strong>Forms</strong><br>Useful for intake: “upload docs”, “data request”, “client onboarding checklist”. Responses can be stored and integrated with automation.</li><li><strong>Tables</strong><br>Simple structured lists: dataset registry, credential inventory, backlog items, project metadata.</li><li><strong>Notes</strong><br>Fast scratchpad that syncs everywhere.</li><li><strong>Calendar + Tasks</strong><br>I use it for recurring maintenance reminders and “maintenance windows” planning.</li></ul><h3>Optional “power apps” (only if you need them)</h3><ul><li><strong>OnlyOffice or Collabora Online</strong><br>Great if you want in-browser document editing, but it adds complexity (another container and config). I treat it as a phase 2.</li></ul><h3>3) Recommended admin configuration after installing those apps</h3><h3>A) Create users and groups (don’t live as admin)</h3><ul><li>Create a normal user for daily use</li><li>Keep admin for admin tasks only</li><li>Use groups if you plan to share certain folders across devices/users</li></ul><h3>B) Set up a “Landing Zone” folder strategy</h3><p>I like having:</p><ul><li>/Inbox (quick uploads from phone)</li><li>/Projects (active work)</li><li>/Archive (long-term, but careful with large preview generation)</li></ul><p>This aligns nicely with automation: /Inbox can trigger n8n workflows.</p><h3>C) Previews/thumbnails</h3><p>Preview generation can be heavy. If your server is modest, keep preview settings conservative. The overview panel will guide you. (You can optimise later once usage patterns are clear.)</p><h3>4) How to update Nextcloud safely (without surprises)</h3><p>Because we’re using Docker, updates are straightforward — but do them <em>intentionally</em>.</p><h3>A) The safe update routine</h3><ol><li>Backup</li><li>Pull images</li><li>Restart stack</li><li>Watch logs</li><li>Check the admin overview</li></ol><p>Commands:</p><pre>cd /srv/nextcloud<br># 1) optional quick &quot;pre-check&quot;<br>sudo docker compose ps<br># 2) pull latest images<br>sudo docker compose pull<br># 3) restart with new images<br>sudo docker compose up -d<br># 4) check logs quickly<br>sudo docker compose logs --tail=100 app<br>sudo docker compose logs --tail=100 db</pre><p>If Nextcloud warns about DB migrations, run:</p><pre>docker exec -u www-data nextcloud php occ upgrade</pre><p>Then re-check:</p><pre>curl -sS http://127.0.0.1:8092/status.php</pre><h3>B) Frequency</h3><ul><li>Monthly is a good rhythm for a homelab</li><li>If you’re using it for anything business critical, shorten it to every 2–3 weeks</li></ul><h3>5) Maintenance: what I actually do and what I automate</h3><h3>A) Daily backups (automate)</h3><p>If you do nothing else, automate backups.</p><p>At minimum:</p><ul><li>DB dump</li><li>Nextcloud config (your compose + config folder)</li><li>Data directory</li></ul><p>Because your data is on /srv/nextcloud-data, backing up is conceptually simple.</p><p>Example structure:</p><ul><li>/srv/nextcloud/ → stack config</li><li>/srv/nextcloud-data/ → all service state (ncdata/pgdata/redis)</li></ul><p>I schedule backups nightly and send a Telegram alert on failure (n8n is perfect here).</p><h3>B) Weekly sanity checks (automate)</h3><ul><li>Disk usage:</li></ul><pre>df -h / /srv/hdd /srv/nextcloud-data</pre><ul><li>Docker disk usage:</li></ul><pre>docker system df</pre><ul><li>Recent Nextcloud errors:</li></ul><pre>sudo tail -n 100 /srv/nextcloud-data/ncdata/nextcloud.log</pre><h3>C) Quarterly filesystem check (because ext4 is inside a file)</h3><p>This is the one “special” maintenance step for the ext4-in-a-file approach. It’s planned downtime:</p><pre>cd /srv/nextcloud<br>sudo docker compose down<br>sudo umount /srv/nextcloud-data<br>sudo e2fsck -f /srv/hdd/nextcloud.ext4<br>sudo mount -a<br>sudo docker compose up -d</pre><p>This keeps that ext4 volume healthy long-term.</p><h3>D) Background jobs / DB optimisations (monthly-ish)</h3><p>After upgrades, I’ll run:</p><pre>docker exec -u www-data nextcloud php occ db:add-missing-indices<br>docker exec -u www-data nextcloud php occ maintenance:repair</pre><p>Then I check:<br><strong>Administration settings → Overview</strong><br>and clear any warnings.</p><h3>6) A quick “Admin checklist” I keep pinned</h3><p>When something feels off (uploads failing, app weirdness), I run through:</p><ul><li>Is it installed and healthy?</li></ul><pre>curl -sS http://127.0.0.1:8092/status.php</pre><ul><li>Are containers up?</li></ul><pre>cd /srv/nextcloud &amp;&amp; sudo docker compose ps</pre><ul><li>Is cron mode set?</li></ul><pre>docker exec -u www-data nextcloud php occ config:app:get core backgroundjobs_mode</pre><ul><li>Is storage mounted?</li></ul><pre>findmnt -T /srv/nextcloud-data<br>df -h /srv/nextcloud-data</pre><ul><li>Any errors?</li></ul><pre>sudo tail -n 200 /srv/nextcloud-data/ncdata/nextcloud.log</pre><p>If those are green, 95% of problems disappear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b24c3c8ca03a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I built my own private cloud on Ubuntu with Nextcloud]]></title>
            <link>https://medium.com/@SQLShark/how-i-built-my-own-private-cloud-on-ubuntu-with-nextcloud-3b663f1f0f43?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b663f1f0f43</guid>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[nextcloud]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 12:49:46 GMT</pubDate>
            <atom:updated>2026-04-07T13:00:24.401Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been meaning to fix my “personal cloud” mess for years.</p><p>Files were everywhere: some in Google Drive, some on a laptop, some on an old external drive, and the rest on a home server I only touched when something broke. The tipping point came when I switched from iPhone to Android — migrating photos out of iCloud and back into Google was painful, and it highlighted something I’d been ignoring: I was paying <em>twice</em> for storage (iCloud and Google) just to keep my own memories accessible.</p><p>I wanted one place where everything lives: documents, photos, archives that I can reach from my phone, sync from my desktop, and back up on my terms. A place where I <em>own</em> the data, not rent it.</p><p>That’s how I ended up building my own Nextcloud server on my Ubuntu box.</p><p>And honestly? It pays off immediately. Once it’s running, uploads from your phone just land somewhere you control, desktop sync behaves as it should, and sharing a folder stops being a permission puzzle across multiple clouds.</p><p>But I learned quickly that a home cloud is only as good as its reliability and security. So I didn’t want a hobbyist setup. I wanted something repeatable, upgradeable, and locked down properly.</p><p>This post is half story, half technical guide — exactly how I built it, why I made each decision, and what I’d do differently if I started again today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l-lWUcRwoZE7KpUo.png" /></figure><h3>The two non-negotiables I started with</h3><p>First: <strong>my data must live on my HDD, not my OS SSD</strong>. Nextcloud is amazing, but it generates thumbnails, caches, app data, versions… and if you accidentally write all of that to /, your SSD, it will quietly get eaten alive. The main reason is that my Linux server has 250 GB SSD and 1TB HDD. It made more sense for my stuff to live on my HDD. However, SSD is definitely the better storage option.</p><p>Second: <strong>I didn’t want to expose this to the public internet</strong>. I’m comfortable running services, but I’m not interested in opening ports, hardening a reverse proxy, and playing whack-a-mole with bot traffic for a personal cloud.</p><p>That second point is what pushed me toward <strong>Tailscale</strong>.</p><h3>Why Tailscale felt like the “right” security model</h3><p>Tailscale gives you a private network (tailnet) between your devices, encrypted with WireGuard. Instead of “publishing” Nextcloud to the world, I just made it available to my own devices over a secure tunnel.</p><p>What I liked about Tailscale is that it isn’t “just a VPN to my home network”, it’s closer to a <strong>zero-trust private network</strong>. Devices don’t get access because they’re on the same Wi-Fi; they get access because they’re <strong>authenticated identities</strong> inside my tailnet. Traffic is encrypted end-to-end (WireGuard), and I can control access with <strong>ACLs</strong> so only the devices/users I trust can even reach my Nextcloud port.</p><p>That shift removes a ton of risk and complexity. I don’t need public DNS, I don’t open WAN ports on my router, and there’s no internet-facing login page for scanners and bots to hammer. My Nextcloud stays effectively “LAN-only”, except my “LAN” follows me everywhere, even on 5G, without exposing anything to the public internet.</p><h3>The setup I landed on (and why)</h3><p>I ran Nextcloud in Docker because I wanted upgrades to be boring: pull new images, restart, done. I also chose <strong>Postgres</strong> (instead of SQLite) because I don’t want a file-based DB becoming a bottleneck as I start using it more seriously. And I added <strong>Redis</strong> because Nextcloud file locking without Redis is one of those things that works… until it doesn’t.</p><p>One more twist: my big HDD is <strong>NTFS</strong>. That’s normal if your drive had a Windows life before Linux. But Nextcloud expects Linux permissions on its data directory. This is where many self-host setups fail.</p><p>I didn’t want to repartition the drive (too risky for irreplaceable archives), so I used a trick that ended up being the best compromise:</p><blockquote>I created a real ext4 filesystem <strong>inside a file</strong> on the NTFS drive, then mounted it to a stable path.<br> Nextcloud writes to ext4 (proper Linux permissions), and the ext4 file lives on the HDD.</blockquote><p>This gave me stability and security without touching partitions.</p><h3>Security diagram: what “Tailscale-only” actually means</h3><p>Here’s the mental model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jrc1l5fzzz341coRM1mVPw.png" /><figcaption>Tailscale Security Model (Zero-Trust)</figcaption></figure><p>The practical security win is simple: <strong>my Nextcloud isn’t reachable from the internet</strong>. It only exists inside my tailnet.</p><h3>Step-by-step: how to build it</h3><h3>0) Prereqs</h3><p>You’ll need:</p><ul><li>Ubuntu server (this guide was built on Ubuntu 25.10, works similarly on LTS)</li><li>Docker + Docker Compose</li><li>Tailscale connected</li><li>A data disk (NTFS is fine)</li></ul><p>Quick sanity checks:</p><pre>docker --version<br>docker compose version<br>tailscale ip -4<br>lsblk -f</pre><h3>1) Mount the HDD at a stable server path</h3><p>Desktop automount paths like /mnt/&lt;UUID&gt; are convenient, but they’re not stable for services. I mounted mine to /srv/hdd.</p><p>Create the mountpoint:</p><pre>sudo mkdir -p /srv/hdd</pre><p>Find disk UUID:</p><pre>lsblk -f<br>sudo blkid</pre><p>Edit fstab (backup first):</p><pre>sudo cp /etc/fstab /etc/fstab.bak.$(date +%F_%H%M)<br>sudo nano /etc/fstab</pre><p>Add your HDD line (replace UUID):</p><pre>UUID=7ED8081CD807D177  /srv/hdd  ntfs-3g  defaults,nofail,x-gvfs-hide,windows_names  0  0</pre><p>Reload and mount:</p><pre>sudo systemctl daemon-reload<br>sudo mount -a<br>findmnt -T /srv/hdd<br>df -h /srv/hdd</pre><p><strong>Why this step matters:</strong> everything else depends on predictable paths. This avoids “it worked yesterday but not after reboot”.</p><h3>2) Create an ext4 filesystem inside a file (no repartition)</h3><p>This was the “aha” moment for my setup.</p><p>Create mountpoint:</p><pre>sudo mkdir -p /srv/nextcloud-data</pre><p>Create a 250GB file on the HDD. Don’t use fallocate on NTFS; it often fails. Use truncate:</p><pre>sudo rm -f /srv/hdd/nextcloud.ext4<br>sudo truncate -s 250G /srv/hdd/nextcloud.ext4<br>ls -lh /srv/hdd/nextcloud.ext4</pre><p>Format it:</p><pre>sudo mkfs.ext4 -F /srv/hdd/nextcloud.ext4</pre><p>Mount it via loop:</p><pre>sudo mount -o loop /srv/hdd/nextcloud.ext4 /srv/nextcloud-data<br>findmnt -T /srv/nextcloud-data<br>df -h /srv/nextcloud-data</pre><p>Persist the loop mount across reboots (add to /etc/fstab):</p><pre>sudo nano /etc/fstab</pre><p>Add:</p><pre>/srv/hdd/nextcloud.ext4  /srv/nextcloud-data  ext4  loop,defaults,nofail,x-systemd.requires-mounts-for=/srv/hdd  0  2</pre><p>Test it (no reboot needed):</p><pre>sudo systemctl daemon-reload<br>sudo umount /srv/nextcloud-data<br>sudo mount -a<br>findmnt -T /srv/nextcloud-data</pre><p><strong>What this achieves:</strong> Nextcloud gets a real Linux filesystem (ext4), so permissions and locking behave correctly. Your physical disk remains NTFS, untouched.</p><h3>3) Prepare directories + permissions for containers</h3><p>Create folders:</p><pre>sudo mkdir -p /srv/nextcloud-data/{ncdata,pgdata,redis}</pre><p>Set ownership:</p><ul><li>Nextcloud runs as www-data (uid 33)</li><li>Postgres container uses uid 999</li></ul><pre>sudo chown -R 33:33 /srv/nextcloud-data/ncdata<br>sudo chown -R 999:999 /srv/nextcloud-data/pgdata</pre><p>Write test:</p><pre>sudo -u www-data bash -lc &#39;touch /srv/nextcloud-data/ncdata/.perm_test &amp;&amp; rm /srv/nextcloud-data/ncdata/.perm_test &amp;&amp; echo OK&#39;</pre><p>If you see OK, you’re good.</p><h3>4) Create the Docker Compose project</h3><p>Create project folder:</p><pre>sudo mkdir -p /srv/nextcloud<br>cd /srv/nextcloud</pre><p>Create .env:</p><pre>sudo tee /srv/nextcloud/.env &gt;/dev/null &lt;&lt;&#39;EOF&#39;<br>TZ=Europe/Sofia<br>NEXTCLOUD_PORT=8092<br>POSTGRES_DB=nextcloud<br>POSTGRES_USER=nextcloud<br>POSTGRES_PASSWORD=CHANGE_ME_DB_LONG_RANDOM<br>NC_ADMIN_USER=admin<br>NC_ADMIN_PASS=CHANGE_ME_ADMIN_LONG_RANDOM<br>EOF</pre><p>Get your Tailscale IP:</p><pre>TAILSCALE_IP=$(tailscale ip -4)<br>echo &quot;$TAILSCALE_IP&quot;</pre><p>Create docker-compose.yml. The most important line is the port binding: we bind <strong>only</strong> to the tailnet IP.</p><pre>sudo tee /srv/nextcloud/docker-compose.yml &gt;/dev/null &lt;&lt;YAML<br>services:<br>  db:<br>    image: postgres:16-alpine<br>    container_name: nextcloud-db<br>    restart: unless-stopped<br>    environment:<br>      POSTGRES_DB: \${POSTGRES_DB}<br>      POSTGRES_USER: \${POSTGRES_USER}<br>      POSTGRES_PASSWORD: \${POSTGRES_PASSWORD}<br>      TZ: \${TZ}<br>    volumes:<br>      - /srv/nextcloud-data/pgdata:/var/lib/postgresql/data<br>redis:<br>    image: redis:7-alpine<br>    container_name: nextcloud-redis<br>    restart: unless-stopped<br>    command: [&quot;redis-server&quot;, &quot;--appendonly&quot;, &quot;yes&quot;]<br>    volumes:<br>      - /srv/nextcloud-data/redis:/data<br>  app:<br>    image: nextcloud:apache<br>    container_name: nextcloud<br>    restart: unless-stopped<br>    ports:<br>      - &quot;${TAILSCALE_IP}:8092:80&quot;<br>    depends_on: [db, redis]<br>    environment:<br>      TZ: \${TZ}<br>      POSTGRES_HOST: db<br>      POSTGRES_DB: \${POSTGRES_DB}<br>      POSTGRES_USER: \${POSTGRES_USER}<br>      POSTGRES_PASSWORD: \${POSTGRES_PASSWORD}<br>      REDIS_HOST: redis<br>    volumes:<br>      - /srv/nextcloud-data/ncdata:/var/www/html/data<br>      - ./nextcloud:/var/www/html<br>  cron:<br>    image: nextcloud:apache<br>    container_name: nextcloud-cron<br>    restart: unless-stopped<br>    depends_on: [app]<br>    entrypoint: /cron.sh<br>    volumes:<br>      - /srv/nextcloud-data/ncdata:/var/www/html/data<br>      - ./nextcloud:/var/www/html<br>YAML</pre><p>Start it:</p><pre>sudo docker compose up -d<br>sudo docker compose ps</pre><p>Confirm it only listens on the tailnet IP:</p><pre>sudo ss -lntp | grep 8092</pre><h3>5) Install Nextcloud (reliable CLI install)</h3><p>Sometimes the web installer hangs on a splash screen. I just install via occ and move on with my life.</p><pre>cd /srv/nextcloud<br>set -a; source .env; set +a<br>docker exec -u www-data nextcloud php occ maintenance:install \<br>  --database pgsql \<br>  --database-host db \<br>  --database-name &quot;$POSTGRES_DB&quot; \<br>  --database-user &quot;$POSTGRES_USER&quot; \<br>  --database-pass &quot;$POSTGRES_PASSWORD&quot; \<br>  --admin-user &quot;$NC_ADMIN_USER&quot; \<br>  --admin-pass &quot;$NC_ADMIN_PASS&quot;</pre><p>Verify:</p><pre>curl -sS http://127.0.0.1:8092/status.php</pre><p>Now open from your devices (explicitly http):</p><p>http://&lt;TAILSCALE_IP&gt;:8092</p><h3>6) Enable cron mode (the “real” background jobs mode)</h3><pre>docker exec -u www-data nextcloud php occ config:app:set core backgroundjobs_mode --value=cron<br>docker exec -u www-data nextcloud php occ config:app:get core backgroundjobs_mode</pre><h3>7) Trusted domains + correct base URL</h3><pre>TAILSCALE_IP=$(tailscale ip -4)<br>HOSTNAME=$(hostname)<br>docker exec -u www-data nextcloud php occ config:system:set trusted_domains 1 --value=&quot;$TAILSCALE_IP&quot;<br>docker exec -u www-data nextcloud php occ config:system:set trusted_domains 2 --value=&quot;$HOSTNAME&quot;<br>docker exec -u www-data nextcloud php occ config:system:set overwrite.cli.url --value=&quot;http://$TAILSCALE_IP:8092&quot;</pre><h3>8) Redis caching (recommended)</h3><p>Edit:</p><pre>sudo nano /srv/nextcloud/nextcloud/config/config.php</pre><p>Add:</p><pre>&#39;memcache.local&#39; =&gt; &#39;\\OC\\Memcache\\APCu&#39;,<br>&#39;memcache.distributed&#39; =&gt; &#39;\\OC\\Memcache\\Redis&#39;,<br>&#39;memcache.locking&#39; =&gt; &#39;\\OC\\Memcache\\Redis&#39;,<br>&#39;redis&#39; =&gt; [<br>  &#39;host&#39; =&gt; &#39;redis&#39;,<br>  &#39;port&#39; =&gt; 6379,<br>],</pre><p>Restart:</p><pre>cd /srv/nextcloud<br>sudo docker compose restart app cron</pre><h3>Maintenance: what I actually do (and how I automate it)</h3><p>This is where my D&amp;A background kicks in: I don’t like “manual rituals”. I want predictable routines and alerts.</p><h3>Daily</h3><ul><li>backups to external drive</li><li>quick disk usage check</li></ul><h3>Monthly</h3><ul><li>pull new images and restart (docker compose pull &amp;&amp; up -d)</li></ul><h3>Quarterly</h3><ul><li>planned filesystem check (e2fsck) because ext4 lives in a file</li></ul><p>I wire the checks into automations (n8n is perfect): a daily script outputs health metrics, and n8n ships it to Telegram/Slack. That way, I’m not discovering failures when I urgently need a file.</p><h3>Common pitfalls (the stuff that cost me time)</h3><h3>1) “Your data directory is readable by other people”</h3><p>This one is almost always storage-related. If you put Nextcloud’s data directory directly on an NTFS mount, Linux permission emulation can make it look too permissive, and Nextcloud refuses to run.</p><p><strong>Fix:</strong> don’t use NTFS as the Nextcloud data directory. Use ext4 (or the ext4-in-a-file approach shown above).</p><h3>2) Port already allocated</h3><p>Docker tried to bind to a port you’re already using.</p><p><strong>Fix:</strong> change the port (e.g., from 8092 to 8093), or bind to the Tailscale IP only (which also tightens security).</p><h3>3) Web installer stuck on the splash screen</h3><p>You’ll see the pretty Nextcloud background but never reach the installer UI. Often this happens after a partial install attempt.</p><p><strong>Fix:</strong> install via CLI (it’s deterministic):</p><pre>docker exec -u www-data nextcloud php occ maintenance:install ...</pre><h3>4) Phone upload fails with “Too Many Requests”</h3><p>This can happen if the mobile app retries aggressively (common when someone accidentally uses https:// against an http:// service). The repeated failures can trigger throttling.</p><p><strong>Fixes:</strong></p><ul><li>Ensure the app URL is explicitly http://&lt;TAILSCALE_IP&gt;:8092</li><li>If needed, reset brute-force throttling for your phone’s IP:</li></ul><pre>docker exec -u www-data nextcloud php occ security:bruteforce:reset &lt;PHONE_TAILSCALE_IP&gt;</pre><h3>5) “Why is my SSD filling up?”</h3><p>If you accidentally mount Nextcloud data to a folder that lives on /, it will eat your OS disk quickly.</p><p><strong>Fix:</strong> always verify mounts:</p><pre>findmnt -T /srv/nextcloud-data<br>docker inspect nextcloud --format &#39;{{range .Mounts}}{{println .Source &quot;-&gt;&quot; .Destination}}{{end}}&#39;</pre><h3>Final verification checklist</h3><p>These are the commands I keep in my runbook:</p><pre># storage: ext4 loop mount (HDD-backed)<br>findmnt -T /srv/nextcloud-data<br>ls -lh /srv/hdd/nextcloud.ext4<br># docker mounts correct<br>docker inspect nextcloud --format &#39;{{range .Mounts}}{{println .Source &quot;-&gt;&quot; .Destination}}{{end}}&#39;<br># nextcloud installed and healthy<br>curl -sS http://127.0.0.1:8092/status.php<br># cron mode<br>docker exec -u www-data nextcloud php occ config:app:get core backgroundjobs_mode<br># tailscale-only binding<br>sudo ss -lntp | grep 8092</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbETo6dZBEVnpIso_IC9CQ.png" /></figure><p>If all of those check out, you’ve got a private cloud that’s genuinely solid:</p><ul><li>correct Nextcloud background jobs,</li><li>correct storage on HDD,</li><li>and tight access through Tailscale only.</li></ul><p>Read <a href="https://medium.com/@SQLShark/configuring-my-private-nextcloud-running-on-ubuntu-b24c3c8ca03a">Part 2</a> is about configuring Nextcloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b663f1f0f43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Article 4: Building the Docker Containers Dashboard in Grafana]]></title>
            <link>https://medium.com/@SQLShark/article-4-building-the-docker-containers-dashboard-in-grafana-35ee4beec810?source=rss-466d94b11a3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ee4beec810</guid>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[SQLShark]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 20:08:25 GMT</pubDate>
            <atom:updated>2026-04-04T20:08:25.477Z</atom:updated>
            <content:encoded><![CDATA[<p>Once you can see the host and the network, the final step is to make Docker itself observable. This is where cAdvisor becomes valuable. cAdvisor collects and exports information about running containers, including resource usage and network statistics, and it exposes those metrics on a Prometheus endpoint by default.</p><p>The goal of this dashboard is simple: stop thinking in terms of “the box is slow” and start seeing which container is responsible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pigd7AW7FEyL5eCfxFRnTg.png" /></figure><h3>Step 1: Confirm that cAdvisor is being scraped</h3><p>Before building panels, verify that the data exists.</p><p>In Grafana <strong>Explore</strong>, run:</p><pre>up{job=&quot;cadvisor&quot;}</pre><p>You want 1.</p><p>Then test:</p><pre>container_memory_working_set_bytes{name!=&quot;&quot;}</pre><p>and</p><pre>container_cpu_usage_seconds_total{name!=&quot;&quot;}</pre><p>If both return data, you are ready to build the dashboard.</p><h3>Step 2: Create the dashboard and container variable</h3><p>Create a new dashboard. Then add a variable:</p><ul><li><strong>Name</strong>: container</li><li><strong>Label</strong>: container</li><li><strong>Type</strong>: Query</li><li><strong>Query type</strong>: Classic query</li><li><strong>Data source</strong>: Prometheus</li></ul><p>Use:</p><pre>label_values(container_last_seen{name!=&quot;&quot;}, name)</pre><p>Turn on <strong>Include All option</strong> and save.</p><p>Grafana’s template variables exist specifically so you can change dashboard scope from a top-level dropdown instead of editing every panel.</p><p>If that variable comes back empty, try:</p><pre>label_values(container_memory_working_set_bytes{name!=&quot;&quot;}, name)</pre><h3>Step 3: Add the “Container CPU %” panel</h3><p>Container CPU usage is based on a counter, so again, the right approach is rate() over a time window, then aggregation. Prometheus’ guidance on rate() and aggregation applies here, too.</p><p>Use:</p><pre>sum by (name) (<br>  rate(container_cpu_usage_seconds_total{name=~&quot;$container&quot;,image!=&quot;&quot;}[5m])<br>) * 100</pre><p>Set:</p><ul><li><strong>Visualization</strong>: Time series</li><li><strong>Title</strong>: Container CPU %</li><li><strong>Unit</strong>: Percent (0-100)</li><li><strong>Legend</strong>: {{name}}</li></ul><p>The image!=&quot;&quot; filter removes some noise and helps focus the panel on real containers.</p><h3>Step 4: Add the “Container Memory” panel</h3><p>Use:</p><pre>sum by (name) (<br>  container_memory_working_set_bytes{name=~&quot;$container&quot;,image!=&quot;&quot;}<br>)</pre><p>Set:</p><ul><li><strong>Visualization</strong>: Time series</li><li><strong>Title</strong>: Container Memory</li><li><strong>Unit</strong>: bytes (IEC)</li><li><strong>Legend</strong>: {{name}}</li></ul><p>This is one of the most useful panels in the whole stack because it shows which containers are consuming working memory right now.</p><h3>Step 5: Add “Top 10 Containers by CPU”</h3><p>Use:</p><pre>topk(<br>  10,<br>  sum by (name) (<br>    rate(container_cpu_usage_seconds_total{name!=&quot;&quot;,image!=&quot;&quot;}[5m])<br>  ) * 100<br>)</pre><p>Set:</p><ul><li><strong>Visualization</strong>: Bar chart</li><li><strong>Title</strong>: Top 10 Containers by CPU</li><li><strong>Unit</strong>: Percent (0-100)</li></ul><p>This is your quick ranking view when the host CPU is high and you want to know who is responsible.</p><h3>Step 6: Add “Top 10 Containers by Memory”</h3><p>Use:</p><pre>topk(<br>  10,<br>  sum by (name) (<br>    container_memory_working_set_bytes{name!=&quot;&quot;,image!=&quot;&quot;}<br>  )<br>)</pre><p>Set:</p><ul><li><strong>Visualization</strong>: Bar chart</li><li><strong>Title</strong>: Top 10 Containers by Memory</li><li><strong>Unit</strong>: bytes (IEC)</li></ul><p>This gives you the same kind of triage view for memory pressure.</p><h3>Step 7: Add “Container Network IO”</h3><p>cAdvisor exposes container and hardware metrics on /metrics, including network statistics. That means you can chart receive and transmit rates per container the same way you did for host interfaces.</p><p>Add Query A:</p><pre>sum by (name) (<br>  rate(container_network_receive_bytes_total{name=~&quot;$container&quot;}[5m])<br>)</pre><p>Legend:</p><pre>RX {{name}}</pre><p>Add Query B:</p><pre>sum by (name) (<br>  rate(container_network_transmit_bytes_total{name=~&quot;$container&quot;}[5m])<br>)</pre><p>Legend:</p><pre>TX {{name}}</pre><p>Set:</p><ul><li><strong>Visualization</strong>: Time series</li><li><strong>Title</strong>: Container Network IO</li><li><strong>Unit</strong>: bytes/sec</li></ul><h3>Step 8: Arrange the dashboard</h3><p>Top row:</p><ul><li>Container CPU %</li><li>Container Memory</li></ul><p>Second row:</p><ul><li>Top 10 Containers by CPU</li><li>Top 10 Containers by Memory</li></ul><p>Third row:</p><ul><li>Container Network IO</li></ul><p>This gives you a clean operational flow: current behaviour at the top, ranked offenders in the middle, network behaviour at the bottom.</p><h3>Step 9: Troubleshooting if a panel shows no data</h3><p>Go to <strong>Explore</strong> and check these in order:</p><pre>up{job=&quot;cadvisor&quot;}</pre><pre>container_last_seen</pre><pre>container_memory_working_set_bytes</pre><pre>container_cpu_usage_seconds_total</pre><pre>container_memory_working_set_bytes{name!=&quot;&quot;}</pre><p>If the raw metric works but the filtered one does not, the issue is usually the label you are grouping on. In that case, inspect the raw series labels in table view and adjust your grouping label.</p><h3>Why this dashboard matters</h3><p>This is the dashboard that turns Docker into something operationally understandable. The host dashboard tells you the machine is under pressure. The containers dashboard tells you exactly which service is causing it. That is where this monitoring project starts to pay off in a very practical way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35ee4beec810" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>