Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. database size

database size

Scheduled Pinned Locked Moved N8N
5 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rosanoR Offline
    rosanoR Offline
    rosano
    wrote on last edited by
    #1

    Is it normal for the database to be half a gigabyte?

    I have deleted all my executions several times but it doesn't seem to change anything. Also just set export DB_SQLITE_VACUUM_ON_STARTUP=true in /app/data/env.sh, but after restarting it seems to take the same amount of space. When I run SELECT pg_size_pretty(pg_database_size('XXXXX')) it says

    pg_size_pretty 
    ----------------
     594 MB
    (1 row)
    

    Is there some data stuck in there that I can see and remove somehow?

    J 1 Reply Last reply
    1
    • BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #2

      That DB_SQLITE_VACUUM_ON_STARTUP does nothing, is absolutly corret and is no error.
      Because, the Cloudron package does not use SQLITE.
      It uses postgresql.

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      2
      • rosanoR rosano

        Is it normal for the database to be half a gigabyte?

        I have deleted all my executions several times but it doesn't seem to change anything. Also just set export DB_SQLITE_VACUUM_ON_STARTUP=true in /app/data/env.sh, but after restarting it seems to take the same amount of space. When I run SELECT pg_size_pretty(pg_database_size('XXXXX')) it says

        pg_size_pretty 
        ----------------
         594 MB
        (1 row)
        

        Is there some data stuck in there that I can see and remove somehow?

        J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #3

        @rosano you should investigate which table is taking so much space . (you can get table size queries from chatgpt)

        rosanoR 1 Reply Last reply
        0
        • J joseph

          @rosano you should investigate which table is taking so much space . (you can get table size queries from chatgpt)

          rosanoR Offline
          rosanoR Offline
          rosano
          wrote on last edited by
          #4

          @joseph it's the execution_data table but I'm not sure how to figure out where the bloat is. the LLM queries are giving me mostly table size but nothing more detailed.

          1 Reply Last reply
          0
          • rosanoR Offline
            rosanoR Offline
            rosano
            wrote on last edited by rosano
            #5

            Deleting all executions still didn't move the database down from 500mb, but after running VACUUM FULL execution_data; it's now 13mb. I''ll take it.

            1 Reply Last reply
            1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search