Perspective
Optiq Is Moving to Databricks
Optiq is moving its entire data stack to Databricks. Warehousing, operational databases, analytics, and every pipeline and scheduled job that feeds the Optiq Ontology will run in one place.

Until now that work was spread across four vendors: Microsoft Azure for warehousing, Supabase for Postgres and authentication, ClickHouse for analytics, and Railway for ETL pipelines and jobs. Each was a reasonable choice when we made it. Together they became the most expensive and most fragile part of the company.
This post explains what we ran, where it broke, and why consolidating on Databricks is the right call for us and for the organizations that rely on our data.
The stack we built on the way up
Optiq started in early 2025 with a small team and a large dataset. We picked the best tool for each job as the job appeared.
- Microsoft Azure held the warehouse: raw voter files, historical election results, and the long-term record behind every model.
- Supabase ran our Postgres databases and authentication. It powered the application layer of Civiq and the client portals we build.
- ClickHouse handled analytics. Counts, crosstabs, and audience queries across the full file needed a columnar engine built for speed.
- Railway ran the ETL pipelines and scheduled jobs that moved data between all of the above.
Each choice had a clear reason behind it.
Azure gave us inexpensive, durable storage for files that arrive in every format a county registrar, government agency, or third-party vendor can produce. Supabase let a small team ship a production application quickly: managed Postgres, row-level security, and authentication in one service, without hiring a database administrator. ClickHouse answered count queries over hundreds of millions of rows faster than anything else we tried at the time. Railway let us deploy a job from a Git push and stop thinking about servers.
It helps to follow one record through that stack. Here's an example: A state delivers an updated voter file. It lands in Azure storage. A job on Railway picks it up, standardizes it and runs an ETL job promoting it from bronze to gold layers, matches it to existing records, and then writes the result to Postgres in Supabase. Change data capture reads that write and replays it into ClickHouse. Only then does the updated record show up in a count inside Civiq.
That is four systems and three handoffs for a single update. Now multiply it by every voter file refresh, every returned ballot, every model score, every audience purchase transaction, and every tag a client applies. Each handoff has its own failure modes, its own monitoring, and its own bill.
This is a common pattern for a young data company, and it got us a long way. It carried the launch of Civiq, the launch of the Miqa AI Workspace, and a full California election cycle with hundreds of campaigns.
It also meant the same data lived in three or four places at once, in three or four formats, under three or four permission models. Every new product feature started with the same question: which copy of the data is this going to read?
Where it broke: the seams
The individual services were not the problem. The connections between them were.
The clearest example is change data capture. Postgres was our system of record, and ClickHouse was where analytics ran. To keep them in agreement, every insert, update, and delete in Postgres had to be captured from the write-ahead log and replayed into ClickHouse. We ran that through ClickPipes, the managed ingestion service in ClickHouse Cloud.
At small scale, CDC is a solved problem. At billions of records it became a standing engineering commitment:
- Bulk loads fought the replication stream. A voter file refresh or a new model score touches a large share of the file in one pass. Each one produced a wave of changes that the pipeline had to absorb before analytics caught up.
- Lag had consequences upstream. When replication fell behind, Postgres retained write-ahead log until the consumer recovered. A slow analytics sync could turn into disk pressure on the production database.
- Schema changes had to land twice. A new column in Postgres needed a matching change in ClickHouse and in the pipeline between them, in the right order.
- Two engines, two answers. Postgres and ClickHouse handle updates, deletes, and deduplication differently. Reconciling a count that differed between the app and an analytics query was a recurring task.
- Recovery meant resyncing. When a stream broke badly enough, the fix was a full re-snapshot of very large tables.
These were not hypothetical. Our voter file database in Postgres holds tables that run to hundreds of gigabytes, and it served the live application, absorbed bulk loads, and fed replication at the same time. We spent real engineering time on lock contention between those workloads and on write-ahead log retention when the replication consumer fell behind. Both problems trace back to one design decision: a transactional database was also the source for an analytics engine.
One Postgres database carried three workloads at once
When replication fell behind
- 1A bulk load sends a wave of changes the stream must absorb
- 2Postgres retains write-ahead log until the consumer recovers
- 3A slow analytics sync becomes disk pressure on production
- 4A badly broken stream means re-snapshotting very large tables
Lock contention and log retention traced back to one decision: a transactional database was also the source for an analytics engine.
None of this work made the Optiq Ontology better. It kept two copies of the same data from drifting apart. Our engineers were spending real time on plumbing between vendors instead of on the models and products our clients pay for.
The same pattern showed up elsewhere in smaller ways: jobs on Railway that needed credentials for three other systems, permissions defined separately in each service, and bills from four vendors that each grew on their own curve.
Jobs that knew nothing about each other
Railway ran our jobs well. What it could not give us was a view across them. A job was a container on a schedule. It had no knowledge of which tables it read, which job had to finish before it, or what depended on its output.
So we encoded dependencies in timing. One job ran at 2:00 because another usually finished by 1:30. When an upstream load ran long, the downstream job ran anyway, on partial data, and reported success. Large files also pushed against container memory limits, which meant chunking logic that existed only to fit the runtime.
Our campaign finance pipeline is a good example. It ingests filings from the FPPC and CalAccess and refines them through raw, cleaned, and modeled layers. We built it from scratch on Railway and Supabase, and it works. Getting it stable took far more debugging than the logic deserved, because the orchestration, the storage, and the database were three products that knew nothing about one another.
One wrong number, four places to look
The cost of all this was clearest when a number looked wrong. A client would report that a count in Civiq did not match a list they had pulled the day before. The investigation followed the same path every time.
- Was the source file loaded completely into the warehouse?
- Did the job that processed it finish, or finish partially?
- Is Postgres correct?
- Has replication caught up, and does ClickHouse agree with Postgres?
Each step meant a different console, a different query language, and a different set of logs. Usually the data was right and one copy was simply behind. Proving that could take an engineer most of a morning.
Four permission models
Access control was defined separately in each system: storage roles in Azure, row-level security in Postgres, users and grants in ClickHouse, and environment secrets in Railway. Keeping them aligned was manual. For voter data, where who can see what is a legal question as well as a technical one, that was the part of the stack we were least comfortable with.
Peak load arrives on a deadline
Our heaviest weeks are the ones before an election. Files arrive daily from counties, clients run more counts than at any other time, and nothing can be late. That is exactly when a replication backlog or a stalled job costs the most, and exactly when the team has the least time to fix it.
Our returned-ballot tracker makes the stakes concrete. Each election cycle we publish a public facing tracker and reporters and campaigns read it daily as county return files come in. When a public number is late or disagrees with the one inside Civiq, people notice the same day.
What Databricks replaces
Databricks covers each layer we were buying separately, on shared storage with one governance model.
| Layer | Before | On Databricks |
|---|---|---|
| Warehousing | Microsoft Azure | Delta tables governed by Unity Catalog |
| Operational Postgres | Supabase Postgres | Lakebase, managed Postgres inside the lakehouse |
| Analytics | ClickHouse | Lakehouse//RT and Databricks SQL on the same Delta tables |
| Pipelines and jobs | Railway | Lakeflow pipelines and jobs |
The important change is not the list of products. It is that the layers stop being separate systems.
One platform replaces four vendors and three handoffs
Before
Each handoff between vendors has its own monitoring, failure modes, and bill.
After
Databricks, governed by Unity Catalog
Analytics and the app read the same governed tables. Nothing to replicate between engines.
On the old stack, a raw file crossed three vendor handoffs before it reached a count in Civiq, and the replication step between Postgres and ClickHouse was the most fragile of them.
Analytics queries read the same governed tables the pipelines write. There is no second engine to keep in sync, so the Postgres to ClickHouse CDC pipeline goes away entirely. The application database sits next to the lakehouse with managed sync between them, instead of a replication stream we operate ourselves.
Permissions are defined once in Unity Catalog and apply everywhere: to a pipeline, a dashboard, an analyst's query, or an AI agent. Lineage is tracked from the raw county file to the number a client sees. For a company whose core asset is sensitive civic data, that matters as much as speed or cost.
Access rules move from four systems into one catalog
Before: kept aligned by hand
After: defined once
The same rule applies wherever the data is read, from the raw county file to the number a client sees.
Warehousing: open tables instead of a storage account
Raw files still land in cloud object storage. The difference is what happens next. Every dataset becomes a Delta table registered in Unity Catalog, in an open format we are not locked into.
We organize the lakehouse in layers. Raw county and state files are kept exactly as delivered. A cleaned layer standardizes and resolves them. The Optiq Ontology sits on top as the modeled, connected layer everything else reads. Because Delta tables keep version history, we can query a table as it stood on a given date, which matters when a client asks why a count changed between Tuesday and Thursday.
Every dataset moves up through three layers, with its history kept
- 03Optiq Ontologymodeled and connected; everything else reads this layer
- 02Cleanedstandardized and resolved
- 01Rawcounty and state files, exactly as delivered
- Files land in cloud object storage as Delta tables registered in Unity Catalog
Delta version history
Query a table as it stood on a given date, so a count that changed between Tuesday and Thursday has an answer.
Operational Postgres: Lakebase
Civiq still needs a transactional database. Saving an audience, applying a tag, or updating an account are small, fast, write-heavy operations, and Postgres is the right tool for them. Lakebase is managed Postgres that runs inside the Databricks platform, so the application code changes very little.
What changes is its relationship to everything else. Modeled data flows from Delta tables into Lakebase through managed synced tables, and operational data flows back to the lakehouse for analytics, without a replication service of our own in the middle. Lakebase also separates storage from compute, which lets us branch a database for testing and scale capacity with load instead of sizing for the busiest week of the year.
Pipelines and jobs: Lakeflow
Our pipelines move from containers on a schedule to Lakeflow pipelines and jobs. Three things improve at once.
- Dependencies are explicit. A job is a graph of tasks. A downstream task runs when its upstream task succeeds, not when the clock says it probably has.
- Ingestion is incremental. New county files are picked up as they arrive, and only new data is processed. A daily returned-ballot file no longer triggers work across the whole table.
- Lineage is recorded automatically. Unity Catalog tracks which tables each pipeline reads and writes. The question "what does this number depend on" has an answer we can look up.
Jobs used to start on the clock. Now they start when their inputs are ready.
Before: timed containers on Railway
The downstream job ran on partial data and reported success.
After: a Lakeflow job is a graph of tasks
- Each task waits for the one before it to succeed
- Only new data is processed
- Lineage recorded in Unity Catalog
Illustrative timeline.
Compute is serverless, so a pipeline that runs for ten minutes costs ten minutes. Retries, alerting, and run history are part of the platform instead of code we maintain.
One place to look
Return to the wrong-number investigation. On the new stack it is one catalog, one query language, and one lineage graph. We can trace a count in Civiq back to the table it read, the pipeline run that last wrote that table, and the source file that run ingested, without leaving the platform.
Tracing a wrong number: four consoles before, one lineage graph now
Before: four consoles, four query languages, four sets of logs
- 1AzureWas the source file loaded completely into the warehouse?
- 2RailwayDid the job that processed it finish, or finish partially?
- 3SupabaseIs Postgres correct?
- 4ClickHouseHas replication caught up, and does ClickHouse agree?
After: one catalog, one query language, one lineage graph
Traced in Unity Catalog without leaving the platform
Replacing ClickHouse: what we found testing Lakehouse//RT
Analytics was the layer we were most cautious about. ClickHouse is fast, and speed is why we adopted it. Counts and audience queries in Civiq have to come back while a user is still looking at the screen. We were not going to trade that away for a simpler architecture diagram.
So we tested it. Lakehouse//RT is the Databricks real-time warehouse, powered by a new engine called Reyden. It is built for low-latency, high-concurrency queries and runs directly on Delta and Iceberg tables in Unity Catalog, with no separate serving copy. It is currently in beta and supports read queries, which fits how we use an analytics engine: pipelines write, applications read.
How we tested
We did not use a synthetic benchmark. Published benchmarks tell you how an engine performs on someone else's schema. We wanted to know how it performs on ours.
- Same data. The full production tables, at production scale, not a sample.
- Same queries. Real queries taken from Civiq: counts, charts, graphs, crosstabs, audience builds, and the lookups Miqa issues.
- Three shapes of query. Single-table aggregations, selective filters on a potentially many columns with multi-table joins across the Optiq Ontology.
- Concurrency. Queries run alone and under simultaneous load, since election-week traffic looks nothing like a single analyst.
- Tail latency. We compared typical response time and slow-case response time. A user remembers the slow query, not the median one.
We ran our real workloads against it: the counts, crosstabs, and audience builds that Civiq issues against the full file. Three things stood out.
It matched ClickHouse on speed, and beat it in places. On the single-table aggregations where ClickHouse is strongest, Lakehouse//RT was just as fast in our testing, and on a number of queries it was faster.
It was clearly better on large joins. This is the result that mattered most. Our data is relational by nature. A useful question usually connects a person to a household, a precinct, a district, their vote history, tags, saved audiences, previous activations, record purchases, and millions of model scores. ClickHouse is at its best on wide, pre-joined tables, and large multi-table joins were where it slowed down for us. To stay fast we denormalized: we flattened the model into wide tables and rebuilt them whenever an upstream table changed.
Lakehouse//RT handled those joins directly, at interactive speed. That lets the serving layer keep the same shape as the Optiq Ontology instead of a flattened copy of it. Fewer derived tables means fewer rebuilds, less storage, and fewer places for a number to go stale.
Take one of the most common queries in Civiq: an audience count that joins the voter record to a model score. Users run queries like it thousands of times a day, so a small difference per query adds up.
Same large join query on ClickHouse and Databricks Lakehouse//RT
Lakehouse//RT returned it 2.2x faster, in 55% less time
Query time, lower is better. Same production tables, same query, run on each engine.
The cost of denormalizing is easy to underestimate. Some of those relationships barely change: a voter's precinct moves when district lines do. Others change constantly. Tags, saved audiences, activations, and purchases are written by clients all day. A flattened table that includes them is out of date the moment a client applies a tag, and rebuilding a wide table over the full file to reflect one small change is expensive.
So in practice we were choosing, table by table, between fast and current. With joins that perform at query time, we do not have to choose. Fast-changing client data stays in its own tables and is joined to the voter record when the question is asked.
Flattened tables go stale. Joins at query time stay current.
Before: one wide, pre-joined table
A client applies one tag. The wide table is out of date until it is rebuilt over the full file.
After: tables keep their own shape and are joined when asked
A new combination of filters no longer needs a new table and a new pipeline first.
It also changes what we can offer. With pre-joined tables, the questions a user can ask are the ones we anticipated when we designed the table. With fast joins, a new combination of filters does not need a new table and a new pipeline first.
It will cost less to run and maintain. There is no dedicated analytics cluster to size for peak, no ingestion pipeline into a second format, and no replication to monitor. The engine queries the tables our pipelines already write. Permissions, row filters, and audit history come from Unity Catalog, so we are not maintaining a second access model for the analytics path.
The maintenance difference is larger than the invoice difference. Running ClickHouse well at our scale meant owning decisions about sort keys, partitioning, merges, materialized views, and cluster sizing, plus the ingestion path that fed it. That is specialized knowledge, and it sat with very few people on a small team. On Lakehouse//RT the same tables serve pipelines, analysts, applications, and agents, and the tuning is largely handled by the platform.
The usual caveat applies. These are results on our data and our query patterns, on a product that is still in beta. We are validating each workload against ClickHouse output before cutting it over, and we will publish the numbers when the migration is complete.
The Optiq Ontology already lives here
This is not a move into unfamiliar territory. The Optiq Ontology, our connected model of people, places, institutions, results, and evidence, already runs on Databricks.
It is worth being specific about what that means. A voter file is a list. The Optiq Ontology is a model of how the things in civic life relate to one another. A person lives in a household, at an address, inside a precinct. That precinct sits within overlapping districts, each with an officeholder, an election history, and a record of who gave money to whom. Every one of those is an entity with a stable identity, and the relationships between them are stored as data, not reconstructed in each query.
The Optiq Ontology stores relationships as data
- 2002 to 2026
- every California statewide election, at the precinct level
- Millions
- of links from precincts to the cities and districts they sit inside
- One ID
- per person, so a voter record, a score, and an audience match without a matching step
The hard work is resolution: deciding that the record in a voter file, the donor in a finance filing, and the person in last cycle's file are the same person, and keeping that decision stable over time. That is compute-heavy, join-heavy work across very large tables, which is why the Ontology moved to Databricks first.
Some numbers give a sense of it. The elections layer covers every California statewide election from 2002 through 2026 at the precinct level. Connecting those precincts to the cities, districts, and other jurisdictions they sit inside takes millions of links, because precinct lines are redrawn between elections. Every person in the Ontology carries one stable identifier across every table, so a record in the voter file, a model score, and a saved audience all refer to the same person without a matching step.
We have been querying it there directly for months. One query can connect a voter record to a precinct, a precinct to its election history, and that history to the campaign finance activity around it. That used to mean pulling from the warehouse, the application database, and the analytics engine, then joining the results by hand.
Working that way changed how the team operates. Analysts stopped asking where a table lived. Questions that took an afternoon of exports took a single query. Genie, the natural-language interface in Databricks, has context on the Ontology, so the people closest to a client question can ask it in plain English and inspect the SQL behind the answer.
It also changed what we build. A question like "which precincts moved most between the last two general elections, and who lives there now" spans results, geography, and the current file. On the old stack that was a project. On the Ontology it is a query, and a query can become a product feature.
Once the Ontology was on Databricks, the rest of the stack was the outlier. We were maintaining four systems to feed and serve something that already had a better home. Moving the remaining layers finishes a migration the Ontology started.
Built for a national footprint
Optiq is a California company today, but it will not stay one. We are expanding state by state, and every new state multiplies the hardest parts of our work.
Each state publishes its voter file differently, with its own layout, its own update schedule, and its own rules about what is public. Election results arrive county by county in whatever format each county uses, and precinct lines are redrawn between elections. A new state means new parsers, identity resolution across new sources, and models trained on a new electorate. A national footprint means doing that dozens of times over and keeping all of it current through a calendar that never fully stops.
That is an engineering problem before it is an analytics problem, and it is the main reason we chose Databricks.
What we evaluated
We looked seriously at the alternatives, including Snowflake.
Snowflake is an excellent SQL analytics warehouse. For a company whose main job is running reports over clean, well-modeled data, it would be a strong choice. It has been adding pipeline tooling and a managed Postgres service, but it grew up analytics-first, and its center of gravity is still the SQL warehouse.
Our main job is different. Most of our compute goes into turning raw, inconsistent public records into a connected model people can trust, and then serving that model fast. Databricks came at the problem from the other direction. It started with large-scale data engineering on Apache Spark and built the warehouse on top. For a company like ours, that order matters.
What decided it:
- Engineering in code, not only SQL. Parsing a new file, resolving identities across sources, and training turnout and persuasion models are Python and Spark work at full-file scale. On Databricks that work runs next to the data, under the same governance as everything else.
- One copy for every workload. Pipelines, analysts, model training, Lakehouse//RT, and Lakebase all work from the same Delta tables. Growing nationally adds data. It does not add copies of it.
- Compute that scales out and back. Backfilling decades of results for a new state can take a large cluster for an afternoon and then nothing at all. We pay for the afternoon.
- Open formats. Our tables are stored in the open Delta format, and other engines can read them, including as Iceberg. Our data is not locked to any vendor, including this one.
- The Optiq Ontology was already here. We were not choosing a platform in the abstract. We were choosing whether to bring the rest of the stack to where our most important asset already lived.
One platform for the whole job
Of everything we evaluated, Databricks was the only platform that covered every layer we run on one governed copy of the data: ingestion and pipelines, the warehouse, machine learning, low-latency analytics, and an operational Postgres database. Other platforms are strong at parts of that list. We had already spent nearly two years learning what it costs to assemble a data company from parts, and we were not going to do it again at national scale.
What this makes possible: the Civiq MCP Server
The clearest example of what a consolidated stack lets us build is the Civiq MCP Server, which comes online soon.
The Model Context Protocol is the open standard that lets AI assistants connect to outside tools and data. The Civiq MCP Server will let a campaign's own AI tools work with Civiq directly: pull counts, build and inspect audiences, and answer questions against the data the campaign is licensed to see. It carries the same permissions as the Civiq account behind it. People remain accountable for what gets done with the answers.
In practice, a campaign manager could ask the assistant they already use, "How many voters in the district returned a ballot this week, broken out by party and age?" and get an answer drawn from Civiq, without opening Civiq on the web.
It complements Miqa, the AI workspace inside of Civiq. The MCP Server brings Civiq's data to the AI tools a team works in outside of it.
The server's data layer and its Lakebase layer both run on Databricks, and each does the job it is suited for.
- Lakebase holds operational state: accounts, permissions, saved lists and audiences, and session data. It is Postgres, so point reads and writes are fast and transactional.
- Lakehouse//RT answers the analytical questions: counts, breakdowns, and audience queries across millions of voter records, joined to precincts, districts, history, and scores.
- Unity Catalog governs both, so a request arriving through an AI assistant is held to the same access rules as one arriving through the Civiq interface.
What happens on a single request
Every request is checked in Lakebase, then answered by Lakehouse//RT
Databricks, governed by Unity Catalog
Numbers match the steps below. The same access rules apply here as in the Civiq interface.
- The assistant calls a tool on the Civiq MCP Server, for example a count with a set of filters.
- The server checks the account in Lakebase: who is asking, which geographies and datasets they are licensed for, and what they have saved.
- The analytical query runs on Lakehouse//RT against the Optiq Ontology, with that account's access rules applied by Unity Catalog.
- The result returns to the assistant, and the request is logged.
Steps two and three are the two halves of our old stack: a transactional lookup and an analytical query. Before, they lived in different systems kept in agreement by CDC. Now they are two services on one platform reading governed data, and the whole round trip has to finish in the time a person is willing to wait for a chat response.
Guardrails
An AI interface to voter data needs firmer limits than a dashboard, not looser ones. The server exposes defined tools, not open database access. It returns what the account is licensed to see and nothing else. Every call is recorded.
Agents are a harder workload than people. A person runs one query and reads the result. An agent answering one question may issue dozens of queries in a few seconds, and many agents do this at once. That is high-concurrency, low-latency, join-heavy work, which is the workload Lakehouse//RT was built for and the one our old stack handled worst.
On the previous architecture, this product would have meant another round of sync pipelines: operational data in one system, analytics in another, a job service in between, and replication lag deciding how current an agent's answer was. On Databricks the server reads the same governed tables as everything else. In our testing, queries across millions of records return fast enough to feel immediate inside a conversation.
What it does to cost
We expect this move to cut our infrastructure spend significantly. When we first modeled it, we estimated savings of 50% to 60% against the Supabase and ClickHouse portion of the stack.
The savings come from three places.
- We stop paying to store and move the same data several times. One copy in open Delta format replaces a warehouse copy, a Postgres copy, and a ClickHouse copy, along with the compute that kept them aligned.
- Compute scales with the work. Our load is seasonal by nature. It peaks hard around elections and file refreshes, then drops. Always-on clusters and minimum replica sizes meant paying peak prices in quiet months. Serverless compute that scales down, including to zero, fits how we actually work.
- Engineering time comes back. The hours spent on replication, resyncs, and cross-vendor debugging do not show up on a cloud invoice, but they were the largest cost of the old stack.
Three copies of the voter record become one
Before: stored and moved several times
Each copy needed storage, compute to keep it aligned, and a transfer bill on every refresh.
After: one copy in open Delta format
One bill instead of four also makes spend easier to attribute. We can see what a pipeline, a client workload, or a model run costs and make decisions with that in view.
Where the old stack spent money
A multi-vendor stack has costs that never appear as a line item for the thing you are actually doing.
- Duplicate storage. The same voter record was stored in the warehouse, in Postgres, and in ClickHouse, plus the flattened tables built for speed.
- Data transfer. Moving data between providers means paying to send it out of one and into the next, on every refresh.
- Idle capacity. A production database, an analytics cluster, and job runners each had to be sized for election week and paid for all year.
- Minimums. Four vendors means four plans, four support tiers, and four sets of baseline charges before any work is done.
We had already worked this from the other direction. Before deciding to move, we spent time tuning the old stack: lowering the minimum memory on our ClickHouse replicas and shutting off ingestion pipes that were still running and still billing after the tables they fed had been retired. That helped. It also made the point. We were paying a floor for capacity we rarely used, and it took an audit to find infrastructure nobody needed anymore.
Why our workload suits this model
Our data has an unusual shape. Activity builds for months, peaks in the weeks before an election, and falls sharply the day after. An odd-year spring looks nothing like an even-year October. Infrastructure priced by provisioned capacity fits that badly. Infrastructure priced by use fits it well.
Load follows the election calendar. Provisioned capacity does not.
- Usage, what usage-based pricing charges for
- Provisioned but idle
Illustrative shape, not measured data.
Keeping it that way
Consolidation does not make a platform cheap by default. Usage-based pricing rewards discipline and punishes a careless query. We tag workloads by product and client, set budgets and alerts, and review spend from the platform's own usage tables. The goal is that cost is something we manage on purpose, with data, instead of something we find out about at the end of the month.
What it means for clients and partners
For Civiq users, nothing about the product changes on day one. Logins, lists, audiences, and Miqa, the AI workspace inside Civiq, work the way they do now.
What changes is underneath.
- Fresher numbers. Counts and audiences read from the same tables the pipelines write, with no replication stage in between.
- Consistent answers. A figure in Civiq, a figure in an analyst's query, and a figure Miqa returns come from one governed source.
- Faster delivery. New datasets, models, and features no longer need to be wired through four systems before a client can use them.
- Cleaner partner exchange. Open formats and Delta Sharing give us a governed way to exchange data with data and vendor partners without building a custom export for each one. Also, other Databricks companies can easily access data straight from our warehouse and build their own apps and tools on top of our data.
- Stronger controls. Access rules and audit history live in one catalog, which makes it simpler to show who can see what and why.
The benefit clients will feel most is in the weeks that matter most. In the run-up to an election, a campaign needs to know who has returned a ballot today, not as of whenever replication last caught up. Removing the handoffs between systems removes the places where that data used to wait.
The second is trust in the numbers. When the same count comes back from the Civiq interface, from Miqa, from a report our analysts prepare, and soon from the Civiq MCP Server, clients stop spending time reconciling and start spending it deciding.
How we are getting there
We are migrating in stages, and the first stages are done.
Two stages are done, two are underway, and the old stack retires last
- Optiq Ontologyon DatabricksDone
- Pipelinesto LakeflowDone
- Analyticsto Lakehouse//RTIn progress
- App databaseto LakebaseIn progressProduction database move held until after the November 2026 election
- Decommissionthe old stackNext
- The Optiq Ontology. Already on Databricks and queried there daily.
- Pipelines and jobs. Moved off Railway through the fall. Our returned-ballot pipelines ran on Databricks during the November 2026 cycle.
- Analytics. Workloads move from ClickHouse to Lakehouse//RT and Databricks SQL as each one is validated against the old results.
- Operational Postgres and the production application layer. Moving to Lakebase now that the election cycle has closed.
- Decommissioning. Azure warehousing, Supabase, ClickHouse, and Railway are retired once each layer has run in parallel and matched. The Civiq MCP Server launches on the new stack from day one.
How we validate each step
Nothing is switched over on faith. Each layer follows the same sequence.
- Build in parallel. The new path runs alongside the old one on the same inputs.
- Reconcile. We compare row counts, key totals, and query results between the two until they match, and we investigate every difference.
- Cut over reads. Applications are pointed at the new path while the old one keeps running.
- Hold a rollback window. The old system stays available until the new one has carried real load without issue.
- Retire. Only then is the old service shut down and its bill closed.
Old and new run side by side until the new path has proven itself
Slower than a single cutover weekend, and the reason clients have not noticed the stages already completed.
This is slower than a single cutover weekend. It is also the reason clients have not noticed the stages already completed.
We held the production database move until after the election on purpose. No one should migrate a system of record in the last weeks of a statewide cycle.
We will publish a technical follow-up once the migration is complete, with what worked, what did not, and the numbers behind it. If you build on similar data and are weighing the same decision, we are glad to compare notes: reach us at data@optiqdata.com.