Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Apolyton/Community-Archive > Why does editing posts take longer than posting them?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
Question  Old Post 08-05-2002 19:54
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Why does editing posts take longer than posting them? Support Apolyton buy from Amazon

Been noticing this over and over since the upgrade to vB. What causes this? Is it the post has to be found in the tree for editing while it's just added when posted?

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 08-05-2002 20:51 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

exactly..

Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:19
  Old Post 08-05-2002 21:05
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Full PM-box? Change here!

Well, it's always harder to write in a file then writeing at the end of a file.

Eli is offline Eli
Emperor
Israel
Jul 2000
time: 07:19
  Old Post 08-05-2002 21:45
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

I also noticed the "problem".

Dauphin is offline Dauphin
Emperor
Caught in a tuna net
Jan 1970
time: 05:19
Wink  Old Post 08-05-2002 22:57
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

The obvious solution is to get it <strike>write, oh crap</strike> right first time.

EDIT - THAT WAS DELIBERATE

THIRD TIME LUCKY

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 08-05-2002 23:39
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

so my assumption was right. so if it's all a tree... how frequently does it get balanced?

Eli is offline Eli
Emperor
Israel
Jul 2000
time: 07:19
  Old Post 09-05-2002 00:43
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
Originally posted by Ecthelion
so my assumption was right. so if it's all a tree... how frequently does it get balanced?


Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 09-05-2002 00:44 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

i'm not sure if it's actually a tree, i think it's just a simple database really, since it uses MySQL.

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 09-05-2002 01:05
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization 2

And a database is not arranged as a tree? given the vast amount of posts, it must be.

I see Eli's returned to "" only posting.

Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:19
  Old Post 09-05-2002 01:24
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by Ecthelion
I see Eli's returned to "" only posting.

The "-s look stange wound a smilie, (I have to test this ""

No to the actual reason for this post: Can it be the update of the searchindex that takes time (removing the post from wth words it no longer has)

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 09-05-2002 01:42 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton or Terrorists Win

lol, it seems like mysql does use a tree structure...
Then i think the search would be the extra time, cos i don't think changing data is much different than adding, you just assign the new text editted to the old post, no need to remove the old post, it just gets overriden...off course this just my speculation on how mysql works... ""

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 09-05-2002 02:04
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
just testing... and responding, of course Support Apolyton or Terrorists Win

""

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:19
  Old Post 09-05-2002 03:42 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Pretty basic.
Editing involves locating where the original post was, deleting the original contents, then replacing those contents with the new post.

Posting involves adding more to the known end of a file.

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:19
  Old Post 09-05-2002 07:10
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

But think of the trees!! Won't someone think of the trees!!!

""

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 09-05-2002 07:53
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Are you sure it uses a balanced b-tree? Looks like too much trouble.

''

loinburger is offline loinburger
Emperor
Sweet Sauce Jones
Jul 1999
time: 00:19
  Old Post 09-05-2002 09:40 Visit loinburger's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Suffering from ads?

I've noticed far more "Your command has been ****ed up, please try again" errors when editing than when posting.

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:19
  Old Post 09-05-2002 10:07
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I generally get them when voting. ""

Scouse Gits is offline Scouse Gits

Emperor
Liverpool, United Kingdom
Nov 1999
time: 05:19
  Old Post 09-05-2002 12:38 Visit Scouse Gits<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton, buy Civilization 2

* Scouse Gits like smilies with ears "" *

and a crude timing test gives twice the time to edit than to post originally ...

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 09-05-2002 14:31 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
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

quote:
''

haha, your smilie has small ears ""

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 09-05-2002 16:06
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton, buy Call to Power 2

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.

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 09-05-2002 16:11
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Avatar Enlargement: We've got the solution

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?

Grrr is offline Grrr
King
of Hamilton, New-Zealand.
Dec 2000
time: 18:19
  Old Post 09-05-2002 23:55 Visit Grrr's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Full PM-box? Change here!

I almost posted a thread on this... Smilies with ears.

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 10-05-2002 03:37 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

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: ~~

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 10-05-2002 08:36
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Tired of ads?

I got to the mySQL site, can't be arsed to find the actual info though

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 10-05-2002 13:31 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Increase the size of your Attachments

i searched for "mysql structure tree" at google, it's the 2nd link ""
http://www.mysql.com/doc/I/n/InnoDB..._structure.html

Ecthy is offline Ecthy
Emperor
Zhonghuà Rénmín Gònghéguó
Mar 2000
time: 06:19
  Old Post 10-05-2002 15:35
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton buy from Amazon

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

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 10-05-2002 17:41
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Call to Power 2

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.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 10-05-2002 17:44
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Full PM-box? Change here!

Did anybody notice this bit?

quote:

Page generated in 1.5208520 seconds (94.69% PHP - 5.31% MySQL) with 30 queries


More PHP operations might explain this.

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 10-05-2002 19:43 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton

hmm, let's test it...adding a new post...
/edit 1, this is what the bottom said:
quote:

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:
quote:
Page generated in 0.6924469 seconds (89.38% PHP - 10.62% MySQL) with 30 queries
6.16 seconds

Lemmy is offline Lemmy
King
Bubblewrap
Dec 2000
time: 06:19
  Old Post 10-05-2002 19:58 Visit Lemmy's homepage!
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Help yourself to an AD-FREE life

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

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:19.
Apolyton Time is 00:19.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0636 seconds (91.00% PHP - 9.00% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net