2.0.1的 where or 查询过滤很慢

  • nebula 版本:2.0.1
  • 部署方式分布式:
  • 是否为线上版本:Y
  • 硬件信息
    • 磁盘(SSD
    • 64core、256G
  • or过滤查询很慢,怀疑没有走索引
+------------+-----------------------------------+
| Tag        | Create Tag                        |
+------------+-----------------------------------+
| "t_mobile" | "CREATE TAG `t_user` (          |
|            |  `mobile` string NULL             |
|            | ) ttl_duration = 0, ttl_col = """ |
+------------+-----------------------------------+

+---------------------+-------------------------------------------------------+
| Tag Index Name      | Create Tag Index                                      |
+---------------------+-------------------------------------------------------+
| "idx_user_moblie" | "CREATE TAG INDEX `idx_user_mobile` ON `t_mobile` ( |
|                     |  `moblie(15)`                                         |
|                     | )"                                                    |
+---------------------+-------------------------------------------------------+

+------------+-----------------------------------+
| Tag        | Create Tag                        |
+------------+-----------------------------------+
| "t_mobile" | "CREATE TAG `t_mobile` (          |
|            |  `mobile` string NULL             |
|            | ) ttl_duration = 0, ttl_col = """ |
+------------+-----------------------------------+
 match (u:t_user) where u.mobile=='1330000001' OR  u.mobile=='1330000002' return u;


没有OR查询很快

2.0.1对这个场景的OR表达式没有优化哦,你可以试用一下master,已经优化了。

1 个赞

抱歉,审核的时候我没注意,这个是重复贴哈,以这个帖子里的回复为准:where 条件中用 or 查询很慢 这边先关掉这个帖子了