Code Monkey home page Code Monkey logo

Comments (7)

ankush avatar ankush commented on May 24, 2024 1

database storage report > action > optimize table > select doctype ??

from frappe.

niraj2477 avatar niraj2477 commented on May 24, 2024 1

https://www.postgresql.org/docs/current/sql-vacuum.html

We can have something like frappe.db.optimize() maybe to support for both db 🤔

from frappe.

ankush avatar ankush commented on May 24, 2024 1

Btw OPTIMIZE basically rewrites entire table for InnoDB. Optimize call causes a lot of I/O on large tables. People will spam this everywhere without knowing costs of it. It's simple query, doesn't need any special API IMO.

from frappe.

niraj2477 avatar niraj2477 commented on May 24, 2024

We can optimize both MyISAM and InnoDB tables.
https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html

from frappe.

akhilnarang avatar akhilnarang commented on May 24, 2024

We can optimize both MyISAM and InnoDB tables.

Yep, had pointed out specifically for MyISAM since the need came about because the storage doesn't get freed up.
Will update title to keep it generic.

from frappe.

niraj2477 avatar niraj2477 commented on May 24, 2024

rewrites entire table for InnoDB

True. Can be just db.sql in that case, will work on it

from frappe.

frappe-pr-bot avatar frappe-pr-bot commented on May 24, 2024

🎉 This issue has been resolved in version 15.25.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from frappe.

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.