fx408
fx408
客户端数据结构 ```go type Batch struct { measurement string rowCount int // 写入的数据行数 minTime int64 maxTime int64 // 构建数据的中间变量,在写入服务端前转换为 record.Record,并排序(多列之间按字典序排列,列内部按时间排序) // key 为列名称 // tag 列使用 influx.Field_Type_Tag 类型 // 服务端转换为 influx.Row...
Record 转 Rows 代码 Row 结构中,只关注 Name,Tags,Fields,Timestamp 四个属性 ```go func Record2Rows(dst []influx.Row, rec *record.Record) []influx.Row { dst, _ = util.AllocSlice(dst[:0], rec.RowNums()) for i := range rec.Schema { sch := &rec.Schema[i]...
进程有异常退出么?需要看下标准输出记录的日志,有没有panic信息
`select /*+ Exact_Static_Query */ first(v) as v from df where t='ncxslfd_fj7005_yc18760' and time >= 1751333760000000000 and time < 1751351040000000000` 使用精确查询看下结果是否符合预期 1. 如果符合预期,则判定可能是预聚合功能引起。 2. 如果结果任然不符合预期,则是其他BUG,需要另行定位 @yangkun2216
``` [data.compact] correct-time-disorder = true ``` 数据文件因为各种原因,文件之间出现时间乱序了 通过上述配置项,内核会自动修正这种错乱 这个配置项可能会带来额外的 CPU和内存的开销,开启一段时间,业务稳定后可以重新关闭。
@Jafeyyu 麻烦提供下无法查询数据的 db,rp 和表名称
麻烦执行下 explain analyze + 查询语句(查询老数据), 并提供下返回结果 示例: ` explain analyze select * from device.default.YGY where time>... and time
> > explain analyze > > 结果请查看附件 > > [explain analyze SELECT.json](https://github.com/user-attachments/files/22962236/explain.analyze.SELECT.json) 好的,我们先做一个测试,看看具体什么原因
> > explain analyze > > 结果请查看附件 > > [explain analyze SELECT.json](https://github.com/user-attachments/files/22962236/explain.analyze.SELECT.json) 我们内部做了个初步测试,1.2 升级到 1.4.1 可以正常查询历史数据。 @Jafeyyu 请检查一下是否有错误日志
1. 下载下元数据 `wget http://192.168.1.200:8091/getdata` 2. 提供下配置文件 @root-H001