feat: 更新 Kafka 配置和数据库管理逻辑
- 在 .env.example 中添加 Kafka 配置项:KAFKA_FETCH_MAX_BYTES, KAFKA_FETCH_MIN_BYTES, KAFKA_FETCH_MAX_WAIT_MS。 - 删除 room_status_sync 提案及相关文档。 - 删除 fix_uint64_overflow 提案及相关文档。 - 更新数据库管理器以支持使用 COPY 语句进行高效数据写入,替换批量 INSERT 逻辑。 - 实现心跳数据的整数溢出处理,确保无效数据被持久化到 heartbeat_events_errors 表。 - 更新处理器规范,确保心跳数据成功写入历史表后触发 room_status 同步。 - 添加新文档,描述新的分区方法案例。 - 归档旧的提案和规范文档以保持项目整洁。
This commit is contained in:
@@ -11,11 +11,10 @@ export default defineConfig({
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'kafka-node', 'pg', 'redis',
|
||||
'kafka-node', 'pg', 'redis', 'pg-copy-streams',
|
||||
// Node.js core modules
|
||||
'events', 'url', 'crypto', 'util', 'net', 'tls', 'buffer', 'path',
|
||||
'node:zlib', 'node:fs', 'node:path', 'node:url',
|
||||
// openspec is not actually used in the code, remove it
|
||||
'events', 'url', 'crypto', 'util', 'net', 'tls', 'buffer', 'path', 'stream', 'stream/promises',
|
||||
'node:zlib', 'node:fs', 'node:path', 'node:url', 'node:stream', 'node:stream/promises'
|
||||
],
|
||||
output: {
|
||||
globals: {
|
||||
|
||||
Reference in New Issue
Block a user