diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-02 18:24:27 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-02 18:24:27 +0000 |
commit | 571fb052a6712e5cd387fe1705fae778f5af7cf3 (patch) | |
tree | fda1ef205ae1e814de56b8ab22d802e2ed02df65 /src/char_sql/inter.c | |
parent | 665680682b57d01415afb478b67d0c7c61d21119 (diff) | |
download | hercules-571fb052a6712e5cd387fe1705fae778f5af7cf3.tar.gz hercules-571fb052a6712e5cd387fe1705fae778f5af7cf3.tar.bz2 hercules-571fb052a6712e5cd387fe1705fae778f5af7cf3.tar.xz hercules-571fb052a6712e5cd387fe1705fae778f5af7cf3.zip |
speedup of SQL logs
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@437 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/inter.c')
-rw-r--r-- | src/char_sql/inter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 9c10cf6c5..52d688dce 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -241,7 +241,7 @@ int inter_log(char *fmt,...) va_start(ap,fmt); vsprintf(str,fmt,ap); - sprintf(tmp_sql,"INSERT INTO `%s` (`time`, `log`) VALUES (NOW(), '%s')",interlog_db, jstrescapecpy(temp_str,str)); + sprintf(tmp_sql,"INSERT DELAYED INTO `%s` (`time`, `log`) VALUES (NOW(), '%s')",interlog_db, jstrescapecpy(temp_str,str)); if(mysql_query(&mysql_handle, tmp_sql) ) { printf("DB server Error (insert `interlog`)- %s\n", mysql_error(&mysql_handle) ); } |