Git Product home page Git Product logo

vacuum_problem's Introduction

PostgreSQL 9.4 (100K records)

  1. Create table vacuum_table CREATE TABLE
  2. Insert 100000 records into vacuum_table INSERT 0 100000
  3. After insert 100000 records table size is: 5914624
  4. Check autovacuum: AUTOVACUUM is off
  5. Update table vacuum_table UPDATE 100000
  6. After update 100000 records table size is: 14032896
  7. Run long live transaction pid: 25211
  8. Run VACUUM FULL VACUUM
  9. After VACUUM FULL table size is: 5890048
  10. Killing long live transaction
  11. Run VACUUM FULL VACUUM
  12. After VACUUM FULL table size is: 5890048

PostgreSQL 9.3 (1M records)

  1. Create table vacuum_table CREATE TABLE
  2. Insert 1000000 records into vacuum_table INSERT 0 1000000
  3. After insert 1000000 records table size is: 58769408
  4. Check autovacuum: AUTOVACUUM is off
  5. Update table vacuum_table UPDATE 1000000
  6. After update 1000000 records table size is: 140017664
  7. Run long live transaction pid: 26649
  8. Run VACUUM FULL VACUUM
  9. After VACUUM FULL table size is: 58736640
  10. Killing long live transaction
  11. Run VACUUM FULL VACUUM
  12. After VACUUM FULL table size is: 58736640

vacuum_problem's People

Contributors

asaushkin avatar

Watchers

 avatar

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.