This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# Proposal: Config to MySQL
## 问题背景
当前配置信息(`symbols_config.json` 品种合约映射、`ai_config.json` AI 模型配置)以 JSON 文件形式存储在 `config/` 目录下。存在以下问题:
1.**配置与应用状态分离**:文件配置难以统一备份、迁移和多实例共享
2.**读写分散**:多个模块直接读取 JSON 文件,重复解析逻辑
3.**无版本/审计**:文件修改无历史记录,难以追踪配置变更
4.**与架构不一致**:行情数据和分析数据已迁移到 MySQL,配置仍停留在文件系统
## 目标
将 `symbols_config.json` 和 `ai_config.json` 迁移到 MySQL `buffer_platform` 数据库,提供统一的配置读取/写入接口,并保留 JSON 文件作为降级方案。