使用Cypher在Memgraph中一次性删除所有索引的方法是什么?

huangapple go评论52阅读模式
英文:

How can I drop all indexes at once using Cypher in Memgraph?

问题

有没有办法执行类似DROP INDEX ON *这样的操作,以删除所有索引?

如果我有大量的索引,逐个删除它们可能需要一些时间。是否有一些查询可以循环遍历现有的索引并删除它们?

英文:

Is there a way to do something like DROP INDEX ON * that would delete all indexes?

If I have a larger number of indexes it can take some time to delete them one by one. Is there some query that can loop through exiting indexes and delete them?

答案1

得分: 1

你现在无法简单地使用Cypher来完成这个操作。Memgraph存储库中有一个关于这个功能的GitHub问题。

英文:

You can't do this by simply using Cypher at the moment. There is a GitHub issue in the Memgraph repository for this feature.

huangapple
  • 本文由 发表于 2023年2月24日 02:08:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75548716.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定