Code Monkey home page Code Monkey logo

Comments (7)

LanQian528 avatar LanQian528 commented on May 8, 2024 1
db.chat.deleteMany({status: 1});
db.chat_room.deleteMany({status: 1});

可以在数据库使用这两行代码删除所有冗余数据

from chatgpt-web.

huangwb8 avatar huangwb8 commented on May 8, 2024

之前我也发现这个问题。 是故意还是不小心 (ฅ´ω`ฅ) @Kerwin1202

from chatgpt-web.

Fugitive844 avatar Fugitive844 commented on May 8, 2024

应该是故意的吧,我觉得这种彻底删除不能让用户主动做,便于你后台审核一些东西,比如统计分析。敏感话题追责

from chatgpt-web.

Kerwin1202 avatar Kerwin1202 commented on May 8, 2024

故意的

from chatgpt-web.

zhujunsan avatar zhujunsan commented on May 8, 2024

有标记,遭不住可以写个cron脚本批量删鸭

from chatgpt-web.

LanQian528 avatar LanQian528 commented on May 8, 2024

故意的

感觉可以在管理员设置里面增加一个一键删除冗余数据的按钮。
可以使用以下两行语句

db.chat.deleteMany({status: 1});
db.chat_room.deleteMany({status: 1});

from chatgpt-web.

Kerwin1202 avatar Kerwin1202 commented on May 8, 2024

1000 条才 1M 1000w 也 10G 删的问题就不考虑

image

from chatgpt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.