reducing DB queries from high priority to low or normal, also removed obsolete repository
This commit is contained in:
@@ -59,7 +59,7 @@ public Action time_query_activity(Handle timer, any data)
|
||||
g_hDatabase.Escape(sName, sEscapedName, size2 + 1);
|
||||
Format(sQuery, sizeof(sQuery), "update unloze_playtimestats.player_time set `%s` = `%s` + 10, player_name = '%s' where steam_id = '%s' and ipv4 = '%s'", sServer, sServer, sEscapedName, sAuthID, sIP);
|
||||
//LogError("sQuery: %s", sQuery);
|
||||
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_High);
|
||||
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_Low);
|
||||
}
|
||||
|
||||
return Plugin_Continue;
|
||||
@@ -117,7 +117,7 @@ public void insert_client(int client)
|
||||
GetClientIP(client, sIP, sizeof(sIP));
|
||||
char sQuery[512];
|
||||
Format(sQuery, sizeof(sQuery), "INSERT INTO `player_time` (`steam_id`, `ipv4`, `player_name`, `ze_time`, `mg_time`, `zr_time`, `jb_time`) VALUES ('%s', '%s', '%s', 0, 0, 0, 0) ON DUPLICATE KEY UPDATE `player_name` = '%s'", sAuthID, sIP, sEscapedName, sEscapedName);
|
||||
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_High);
|
||||
g_hDatabase.Query(SQL_FinishedQuery, sQuery, _, DBPrio_Low);
|
||||
}
|
||||
|
||||
public void SQL_FinishedQuery(Database db, DBResultSet results, const char[] error, any data)
|
||||
|
||||
Reference in New Issue
Block a user