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
DataV2 · V2 HQ
Overloaded
→
SQL Proxy
Node.js :3000
V2 on-prem server
V2 on-prem server
Install tomorrow
→
sql28.v2retail.net
CF Tunnel #4e2e7c09
DNS live
DNS live
cloudflared needed
→
v2-data-api
data.v2retail.net
CF Worker · Edge
CF Worker · Edge
Live
→
v2-sync-engine
sync.v2retail.net
CF Worker · Cron
CF Worker · Cron
Live
→
Supabase
8 active projects
T-1 fresh by 2:30am
T-1 fresh by 2:30am
Ready
→
All Apps
SRM · SCM · Finance
RetailHub + Lovable
RetailHub + Lovable
In production
SERVER 28 PROTECTION
ActiveMax SQL connections5 hard cap
KV cache hit rate (target)80%+ reads
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.