chaoge d39287b7ee feat(mds): 实现removing状态数据在推送时删除正式表对应记录
核心逻辑:
- removing状态数据能且仅能在推送时删除,禁止自动清理
- 增量推送:根据business_keys删除正式表+缓冲表记录
- 刷新推送:正式表已TRUNCATE,只删除缓冲表记录

修改内容:
1. staging_cleaner.py
   - sync_to_production新增处理removing状态数据逻辑
   - 根据推送模式区分删除策略
   - 增量模式:按business_keys构建WHERE条件删除正式表记录
   - 刷新模式:直接删除缓冲表记录(正式表已TRUNCATE)

2. staging_routers.py
   - 同步路由返回统计新增removed字段
   - 更新返回消息显示删除数量

数据一致性保证:
- 缓冲表removing记录 → 推送时 → 正式表对应记录一并删除
- 确保缓冲表和正式表数据状态一致
2026-05-22 14:23:27 +08:00
2026-05-10 21:43:32 +08:00
2026-05-22 00:23:30 +08:00
2026-05-20 19:37:26 +08:00
2026-05-10 23:26:56 +08:00
2026-05-13 17:16:49 +08:00
2026-05-22 00:23:30 +08:00
2026-05-13 00:23:41 +08:00
2026-05-10 23:26:56 +08:00
2026-05-20 22:26:08 +08:00
2025-10-23 11:15:25 +08:00

MyAPS FastAPI Project

A simple FastAPI project template with a Python virtual environment.

Project Structure

myaps_fastapi/
├── venv/              # Python virtual environment
├── main.py            # Main FastAPI application
├── requirements.txt   # Project dependencies
├── .gitignore         # Git ignore file
└── README.md          # Project documentation

Getting Started

1. Activate the Virtual Environment

Windows:

venv\Scripts\activate

macOS/Linux:

source venv/bin/activate

2. Install Dependencies

pip install -r requirements.txt

3. Run the FastAPI Server

uvicorn main:app --reload

4. Access the API

API Endpoints

  • GET / - Root endpoint with welcome message
  • GET /api/info - Project information

Features

  • FastAPI framework for high-performance API development
  • Automatic interactive API documentation
  • Python virtual environment for dependency isolation
  • Git integration with proper ignore rules

Requirements

  • Python 3.7+","}}}
S
Description
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,到期日0830
Readme 6.2 MiB
Languages
JavaScript 59.5%
Python 33.5%
HTML 3.7%
CSS 1.1%
Shell 0.8%
Other 1.4%