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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Nov 03, 2011 2:04 am   

[3.34]%mapquery() doesn't respect %mapfilter() state
 
If there's a %mapfilter() in place, you have to include that filter in the %mapquery() SQL string as well. The two should be working hand in hand, I think.
_________________
EDIT: I didn't like my old signature
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri Nov 04, 2011 1:46 am   
 
Actually, your suggestion would work quite well since %mapfilter() returns a subset or partition. Applying %mapquery() to that should not be a problem. The only problem I can see is the current implementation of %mapfilter(). It returns records just in time, so that may not sit well with the way %mapquery() works currently. The implementation of this idea is not trivial.
I am guessing that CMUD caches the result of the filter and uses that to process any request affected by the use of the function. However, with %mapquery() CMUD would go against the actual database and not the cache. For this to work the way you want, CMUD would have to maintain the cache in the database (a memory database, most likely) and apply that filter to that database. Certainly doable.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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