如何删除 MongoDB 中的重复项?

时间:2021-05-19 08:47:54

标签: mongodb

我在 MongoDB 中有一个包含 500K 文档的数据库,其中一些是重复的。我的数据库有一个字段 var users = context.Users.Where(a => EF.Functions.Like(a.FirstName, "%a%")).ToQueryString(); 从 1 开始并不断增加。有些号码有 2 个文件。如何删除它们? 更详细,当我创建具有唯一性的索引时:

import ipyvuetify as vue
pp=vue.Html(tag='mark',style_='font-weight: bold; background-color:green', children=['this is the first text highlighted green'])
pp2=vue.Html(tag='mark',style_='font-weight: bold; background-color:red', children=['this is a second text highlighted red'])
pp3=vue.Html(tag='p',style_='font-weight: bold; background-color:blue', children=['blueblue'])
display(pp,pp2,pp3)

错误消息:

number

0 个答案:

没有答案
相关问题