Branch: Tag:

1999-05-24

1999-05-24 12:39:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Minor SQL optimization.

Rev: server/base_server/roxen.pike:1.287

1:   /* -  * $Id: roxen.pike,v 1.286 1999/05/24 08:41:45 per Exp $ +  * $Id: roxen.pike,v 1.287 1999/05/24 12:39:18 grubba Exp $    *    * The Roxen Challenger main program.    *
7:    */      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.286 1999/05/24 08:41:45 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.287 1999/05/24 12:39:18 grubba Exp $";      object backend_thread;   object argcache;
2218:    {    if( is_db )    { -  mapping res = db->query("select * from "+name+" where id='"+id+"'"); +  mapping res = db->query("select id from "+name+" where id='"+id+"'");    if( sizeof(res) )    {    db->query("update "+name+" set atime='"+