gouhongshen

Results 41 comments of gouhongshen

利用@jensenojs 的环境,执行 insert: ![image](https://github.com/matrixorigin/matrixone/assets/26336316/8bed1788-8a8b-4c4a-9c6e-79805dc0fd0a) 另起一个 CN,执行 insert,结果如下: 1. 最新的 main 镜像, commit id: `164ddc1969c3aa425e85f401822dd5ea4c927351`, 有 log ![image](https://github.com/matrixorigin/matrixone/assets/26336316/2a0c7c79-1414-4036-b897-d26c4c60eb14) 2. 同集群相同 commit id,,结果如下: ![image](https://github.com/matrixorigin/matrixone/assets/26336316/0953a5d0-31ff-4bb4-8eb1-dc39820aaa23) 3. 最新的 main, 镜像, commit id: `164ddc1969c3aa425e85f401822dd5ea4c927351`, 无...

`select into statement_cu_for_test values (...)` `after tryFastRanges` 指没有命中 `try fast ranges` ``` after tryFastRanges] blkHit: 5596, blkTotal: 5596, blkHitRate: 1.000000 slow-insert: [after tryFastRanges] blkHit: 5596, blkTotal: 5596, blkHitRate: 1.000000"} [after...

目前有一个简单的结论: 1. 为什么没有走 fast ranges (bloom filter)? `INSERT INTO mo_catalog.statement_cu_for_test (statement_id, account,response_at,cu,account_id) VALUES (...)` 的 expression 包含 in 操作, ranges 里面的 fast ranges 还不支持 in 操作。 ``` (a=x1 and b=y1)...

经过一些测试,有一些现象: cluster primary key (a bigint, b bigint), 现有 1000W 数据, batch Insert (100 values),插入 100 W 行。 | 从上面的图可以看出来,事务的时间都耗在了 compile.Run,下面的图是compile.Run 里面算子的耗时: | | 另外补充下,每 100 次 Insert 的平均耗时: ```...

细分下算子的耗时。 1. 根据 log, 在 Insert 期间,除了初期的几次 ranges 返回了 1000+ 个 block(非 fast ranges),其他时候都是 10 个以内。 2. table scan 每次的数据量大概不超过 0.5 mb 3. Insert 时,算子耗时总是一段时间高,一段时间又低一些。 | @ouyuanning 麻烦看一下是不是正常的,预期的结果

和 @jensenojs @badboynt1 沟通后,发现可能是因为联合主键 filter 改写的逻辑问题。 先 assign 给 @jensenojs 优化算子

直接自增主键表,没有记录: ``` mysql> select col_name, table_id from mo_catalog.mo_increment_columns; Empty set (0.04 sec) ``` 新建含有自增主键的表,操作可以成功 ``` mysql> create table incr_test(a int auto_increment, b int); Query OK, 0 rows affected (0.14 sec)...

> 这个问题有复现流程吗? @gouhongshen 正在用脚本复现,目前还没出现

复现:https://grafana.cn-dev.matrixone.tech/explore?panes=%7B%22NWi%22:%7B%22datasource%22:%22aee71632-e6c2-4299-906a-cc73bb62fd3b%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22iotdemo-debug%5C%22%7D%20%7C~%20%60Cannot%20find%20tableID%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22aee71632-e6c2-4299-906a-cc73bb62fd3b%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%22now-12h%22,%22to%22:%22now%22%7D%7D%7D&schemaVersion=1&orgId=1