SYNC MODE
T-1 DAILY
Full sync every night at 2am IST
SQL TABLES IN MANIFEST
26
‚Üí 43 Supabase targets across 8 projects
MAX SQL CONNECTIONS
5
Hard cap — Server 28 protected
SUPABASE PROJECTS
8
Active · 3 Lovable-hosted
END-TO-END PIPELINE
SQL Server 28
192.168.151.28
DataV2 · V2 HQ
‚ö† Overloaded
5 connections
max pool
max pool
SQL Proxy
Node.js :3000
V2 on-prem server
‚è≥ Install tomorrow
CF Tunnel
HTTP
HTTP
sql28.v2retail.net
CF Tunnel #4e2e7c09
DNS live ‚úÖ
‚è≥ cloudflared needed
cache layer
5-30 min
5-30 min
v2-data-api
data.v2retail.net
CF Worker · Edge
‚úÖ Live
2am IST
daily
daily
v2-sync-engine
sync.v2retail.net
CF Worker · Cron
‚úÖ Live
batch upsert
500 rows
500 rows
Supabase
8 active projects
T-1 fresh by 2:30am
‚úÖ Ready
REST / SDK
realtime
realtime
All Apps
SRM · SCM · Finance
RetailHub + Lovable
‚óè In production
SERVER 28 PROTECTION
ActiveMax SQL connections5 hard cap
Reads go through v2-data-api KV cache80%+ cache hits
Between table syncs500ms pause
Between waves2 minute pause
Rows per page500 (masters) · 500 (txn)
Max pages per table200 (100k row safety)
Failed tables retry3am IST automatic
Sync reads bypass KVnocache=1 always fresh
NIGHTLY WAVE PLAN
2:00am IST — Wave 1: Core Masters
ArticleMaster, VendorMaster, StoreMaster, CategoryMaster, ProductMaster — the foundation everything else depends on. Runs first.
2:15am IST — Wave 2: Stock & Inventory
InventorySnapshot, StoreStock, BinStock, BinMaster, WHInventory — stock positions from end of day.
2:30am IST — Wave 3: T-1 Transactions
DailySales, GRC, PO — yesterday's core business data. What teams review first thing in the morning.
2:45am IST — Wave 4: Supporting Masters
Color, Size, Brand, Season, SubCategory, Division, Region, State, FinanceSummary — supporting data for enrichment and filters.