Announcement

Collapse
No announcement yet.

Why does editing posts take longer than posting them?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I've noticed far more "Your command has been ****ed up, please try again" errors when editing than when posting.
    <p style="font-size:1024px">HTML is disabled in signatures </p>

    Comment


    • #17
      I generally get them when voting. ""
      I'm building a wagon! On some other part of the internets, obviously (but not that other site).

      Comment


      • #18
        /me like smilies with ears "" *

        and a crude timing test gives twice the time to edit than to post originally ...
        "Our words are backed by empty wine bottles! - SG(2)
        "One of our Scouse Gits is missing." - -Jrabbit

        Comment


        • #19
          Are you sure it uses a balanced b-tree? Looks like too much trouble.
          yes, i searched at google, got directed to the mysql site (duh""), can't remember the url, or my exact search criteria, but i'm pretty sure...it said balanced b-tree

          ''
          haha, your smilie has small ears ""
          <Kassiopeia> you don't keep the virgins in your lair at a sodomising distance from your beasts or male prisoners. If you devirginised them yourself, though, that's another story. If they devirginised each other, then, I hope you had that webcam running.
          Play Bumps! No, wait, play Slings!

          Comment


          • #20
            I created a monster ""

            Guys, whenever you post a smiley with ears, remember who started it! And spell it right: Ec-the-lion ""

            Anyway, I just asked if it was a balanced tree, but this morning I came to the conclusion that lists would be efficient enough. A list of forums, where each forum is a list of threads (easily sort-able and positions easily switch-able) where each thread is a list of posts. A big tree of posts would oly be useful if they were in some random order, so it's certainly not a balanced tree. The allocation with threads and forums would be too difficult.

            BTW, the only lists that needs to bye really dynamic is a forum, because only threads exchange positions on the listing. But then, posts need to be removed as well.

            And when I come and think about it, forums don't even need to be listed sort of dynamically, for they're in no real connection to each other. So they're just lists (forums, of threads) of lists (threads, of posts)

            That's what I suppose. It seems more logical than one huge tree.

            Comment


            • #21
              but that can't be it either... every time someone bumps a thread a list would have to be altered... given how long it takes to edit a post, posting as such would take lot longer... or?

              Comment


              • #22
                I almost posted a thread on this... Smilies with ears.
                Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
                Waikato University, Hamilton.

                Comment


                • #23
                  the way the threads are listed has nothing to do with the actual database structure, the way they are listed depends on the php-code, i odn't know MySql, but in sql there could be something like SORT BY lastpost.date, but you could also have something likwe SORT BY thread.name, then all threads would be shown by name, but the db structure would remain the same..

                  i wonder whast this looks like: ~~
                  <Kassiopeia> you don't keep the virgins in your lair at a sodomising distance from your beasts or male prisoners. If you devirginised them yourself, though, that's another story. If they devirginised each other, then, I hope you had that webcam running.
                  Play Bumps! No, wait, play Slings!

                  Comment


                  • #24
                    I got to the mySQL site, can't be arsed to find the actual info though
                    (\__/) 07/07/1937 - Never forget
                    (='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
                    (")_(") "Starting the fire from within."

                    Comment


                    • #25
                      i searched for "mysql structure tree" at google, it's the 2nd link ""
                      <Kassiopeia> you don't keep the virgins in your lair at a sodomising distance from your beasts or male prisoners. If you devirginised them yourself, though, that's another story. If they devirginised each other, then, I hope you had that webcam running.
                      Play Bumps! No, wait, play Slings!

                      Comment


                      • #26
                        so I was right about b-trees, but I'm not convinced by the system's efficiency

                        Comment


                        • #27
                          So the indices are stored in a b-tree. Still doesn't explain why edit takes longer, since theoretically append a new leaf node takes about the same amount of time as searching for an existing index.

                          Thanks Lemmy.
                          (\__/) 07/07/1937 - Never forget
                          (='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
                          (")_(") "Starting the fire from within."

                          Comment


                          • #28
                            Did anybody notice this bit?

                            Page generated in 1.5208520 seconds (94.69% PHP - 5.31% MySQL) with 30 queries
                            More PHP operations might explain this.
                            (\__/) 07/07/1937 - Never forget
                            (='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
                            (")_(") "Starting the fire from within."

                            Comment


                            • #29
                              hmm, let's test it...adding a new post...
                              /edit 1, this is what the bottom said:
                              Page generated in 0.2170900 seconds (79.53% PHP - 20.47% MySQL) with 30 queries
                              6.64 seconds
                              /edit 2, and this is the time for editing this post:
                              Page generated in 0.6924469 seconds (89.38% PHP - 10.62% MySQL) with 30 queries
                              6.16 seconds
                              <Kassiopeia> you don't keep the virgins in your lair at a sodomising distance from your beasts or male prisoners. If you devirginised them yourself, though, that's another story. If they devirginised each other, then, I hope you had that webcam running.
                              Play Bumps! No, wait, play Slings!

                              Comment


                              • #30
                                10% more php when editing, generating also takes longer, but i don't think it's only because of that 10% more php, it must be a combination then, searching the tree, and php code
                                <Kassiopeia> you don't keep the virgins in your lair at a sodomising distance from your beasts or male prisoners. If you devirginised them yourself, though, that's another story. If they devirginised each other, then, I hope you had that webcam running.
                                Play Bumps! No, wait, play Slings!

                                Comment

                                Working...
                                X