Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
atpeace
Novice


Joined: 26 Jan 2009
Posts: 32

PostPosted: Mon Jan 26, 2009 2:45 pm   

#DBDELETE Does not nothing in #DBOFFLINE Mode
 
As in ZMud #DBDELETE Does nothing if the Database is set to offline

#DBOFFLINE
#DBLOAD Actions
#DBFIRST
#VIEW All
#DBFIRST
#WHILE (not %null(%rec)) {
#ECHO &Num
#DBDELETE &Num
#DBNEXT
}
#DBONLINE
;Produces a list of correct database numbers but does not delete them
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 26, 2009 3:52 pm   
 
This is the correct functionality of #DBOFFLINE.

Per #HELP #DBOFFLINE (entered into the command line)

Quote:
"Puts the database into Offline mode so that scripting commands do not effect the user interface."


Basically means you can't edit it while it's in Offline mode, something I enjoy very much.

Charneus
Reply with quote
atpeace
Novice


Joined: 26 Jan 2009
Posts: 32

PostPosted: Mon Jan 26, 2009 4:05 pm   
 
Well I'm sorry to say but all my database editing is done in offline mode else you get a significant performance hit

You can #DBPUT, #DBGET, #VIEW, #DBLOAD, #DBNEXT, use &(dbvar) for retrieval and assignment, %rec and more in #DBOFFLINE mode. The only thing you can't do is DBDELETE.

The offline mode surely is so you can script actions on the database without it updating the view (as all my functions do) else you would have to accept the performace hit of the view updating.

What exactly is the point of offline mode if it is not for scripting?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 26, 2009 4:09 pm   
 
*shrug* Maybe I misinterpreted the vagueness of the helpfile, then.

In any case, I've never suffered a 'significant performance hit' because all my db editing is done online. In fact, I just deleted over 1200 records without a hint of lag. *shrug*

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net