Design Input Tables That Write User Edits Back To The Warehouse

Last updated: November 29, 2026

Quick Overview

Design a feature where users type, paste or edit rows in a spreadsheet-style table inside a workbook and the data is stored in the customer's warehouse, so it can be joined with warehouse data, while several people may edit the same table at once.

Sigma Computing
System Design
Software Engineer
Sigma Computing
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a feature where users type, paste or edit rows in a spreadsheet-style table inside a workbook and the data is stored in the customer's warehouse, so it can be joined with warehouse data, while several people may edit the same table at once.

Writeback is what lets Sigma serve planning and forecasting workflows instead of read-only dashboards. Interviewers check how you handle warehouses that are slow at single-row writes, concurrent edits, auditability, and keeping reads consistent with edits that have not landed yet.

What the Interviewer Expects
  • Recognize that analytic warehouses are poor at many tiny transactional writes
  • Buffer edits in a low-latency store and batch them into the warehouse
  • Define a clear concurrency model (row-level last-writer-wins with versions, or cell-level merge)
  • Keep an append-only edit log for audit and undo
  • Give the editing user read-your-writes while batches are in flight
  • Handle schema changes such as added columns or type changes
Key Topics to Cover
writeback
batching
concurrency control
event log
consistency
warehouse limitations
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Would you store edits as an append-only log table in the warehouse and expose a deduplicated view, or update rows in place? Why?
  • How would you show two users editing the same row at the same time?
  • How does row-level security apply to rows a user typed in?
  • How would you support pasting 50,000 rows from Excel?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: create a table with typed columns, add, edit and delete rows, paste in bulk, see others' changes, undo, and use the table in joins from other workbook elements. Non-functional: an edit sho...

High-Level Design

The client sends edit operations (table_id, row_id, column, new_value, base_version) to an edit service. The service validates types and permissions, assigns a monotonically increasing sequence numb...


Submit Your Answer
Markdown supported

Related Questions