Re: are we ready to fix random sort? - Or did that already happen?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32761
interpreted = N
texte = Linux/3.08I stuck my original search context (see below) inside a loop set to go 1000 times. This is what I get:rec02=48 rec03=76 rec04=64 rec05=122 rec06=116 rec07=106 rec08=85 rec09=110 rec10=118 rec11=83 rec12=72SO then I put in the randseed param as you requested, and got:rec02=33 rec03=100 rec04=117 rec05=160 rec06=113 rec07=92 rec08=60 rec09=98 rec10=105 rec11=53 rec12=69 but if I remove the loop and just do a few dozen force reloads it seems to be random! :-) (For sure - when viewing *one* founditem at a time - adding the randseed param makes it seem much more random then it was before... I don't get the same 2 records over and over; I get records all over the map - served one at a time since max=1.)So that randseed param solves the situation for this (my) particular applictaion at the moment... but the 1000 searches appears to show nothing much changed. Please say if you wanted some other kind of feedback.-JohnGrant Hulbert wrote:> >I have an opt-in subscribers.db which is growing daily. I want to > >pick a random winner > >of a prize from that db each week. > >I use: > > > >[Search db=subscribers.db > >&wnEmailAddressdata=feeling-goods.com > >&EmailAddresswbrk=@ > >&subscriberNumsort=1 > >&subscriberNumsdir=ra > >&max=1&allhit=1] > > > >I hit the template and it displays one record. I force reload the > >page and get a > >different result. I force reload a third time and I see the same > >result as the first > >loading.. > > While we're investigating this, could you add > &randseed=[random][random][random] to your serach criteria? We're > trying to track down why this is different on Linux compared to Mac > or Windows. > > Grant Hulbert, Director of Engineering ********************************** > Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) > 16855 West Bernardo Drive, #380 | ------------------------- > San Diego, CA 92127 | Software & Site Development > Main Line: (858) 675-1106 | http://www.smithmicro.com > Fax: (858) 675-0372 ********************************** > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to Associated Messages, from the most recent to the oldest:

    
  1. Re: are we ready to fix random sort? - Or did that already happen? (John Butler 2000)
  2. Re: are we ready to fix random sort? - Or did that already happen? (Grant Hulbert 2000)
  3. Re: are we ready to fix random sort? - Or did that already happen? (John Butler 2000)
  4. Re: are we ready to fix random sort? - Or did that already happen? (Grant Hulbert 2000)
  5. Re: are we ready to fix random sort? - Or did that already happen? (John Butler 2000)
Linux/3.08I stuck my original search context (see below) inside a loop set to go 1000 times. This is what I get:rec02=48 rec03=76 rec04=64 rec05=122 rec06=116 rec07=106 rec08=85 rec09=110 rec10=118 rec11=83 rec12=72SO then I put in the randseed param as you requested, and got:rec02=33 rec03=100 rec04=117 rec05=160 rec06=113 rec07=92 rec08=60 rec09=98 rec10=105 rec11=53 rec12=69 but if I remove the loop and just do a few dozen force reloads it seems to be random! :-) (For sure - when viewing *one* founditem at a time - adding the randseed param makes it seem much more random then it was before... I don't get the same 2 records over and over; I get records all over the map - served one at a time since max=1.)So that randseed param solves the situation for this (my) particular applictaion at the moment... but the 1000 searches appears to show nothing much changed. Please say if you wanted some other kind of feedback.-JohnGrant Hulbert wrote:> >I have an opt-in subscribers.db which is growing daily. I want to > >pick a random winner > >of a prize from that db each week. > >I use: > > > >[Search db=subscribers.db > >&wnEmailAddressdata=feeling-goods.com > >&EmailAddresswbrk=@ > >&subscriberNumsort=1 > >&subscriberNumsdir=ra > >&max=1&allhit=1] > > > >I hit the template and it displays one record. I force reload the > >page and get a > >different result. I force reload a third time and I see the same > >result as the first > >loading.. > > While we're investigating this, could you add > &randseed=[random][random][random] to your serach criteria? We're > trying to track down why this is different on Linux compared to Mac > or Windows. > > Grant Hulbert, Director of Engineering ********************************** > Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) > 16855 West Bernardo Drive, #380 | ------------------------- > San Diego, CA 92127 | Software & Site Development > Main Line: (858) 675-1106 | http://www.smithmicro.com > Fax: (858) 675-0372 ********************************** > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to John Butler

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

emailer on Windows Beta 18 (1997) Multiple prices (1997) Emailer 1.01 bombs (1997) Fwd: Problems with Webcatalog Plug-in (1997) Pithy questions on webcommerce & siteedit (1997) A quickie question (1997) Emailer help....! (1997) numfound question (2005) [WebDNA] Google map mashups (2010) database search help (2003) For those of you not on the WebCatalog Beta... (1997) cart converting to scientific notation format (2001) Accented chars and emailer (1998) SET (1998) HTTP 404 / Error Mapping (2001) RE: SSL and WebCatalog (1997) Setting up shop (1997) Who is doing sign-ups-got it (1998) Connection count (2005) OT: Jobseekers beware... (2003)