OSDN Git Service
(root)
/
webchat
/
WebChat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68378b
)
プロフィール更新時のクエリーを最適化した
author
konekoneko
<jbh03215@hotmail.co.jp>
Sat, 1 Jun 2013 15:45:17 +0000
(
00:45
+0900)
committer
konekoneko
<jbh03215@hotmail.co.jp>
Sat, 1 Jun 2013 15:45:17 +0000
(
00:45
+0900)
.gitignore
patch
|
blob
|
history
profile.js
patch
|
blob
|
history
diff --git
a/.gitignore
b/.gitignore
index
8024d50
..
f07ccec
100644
(file)
--- a/
.gitignore
+++ b/
.gitignore
@@
-1,3
+1,5
@@
/node_modules
/log
/ipbanlist.txt
+
+/inited
diff --git
a/profile.js
b/profile.js
index
5957f71
..
20a069b
100644
(file)
--- a/
profile.js
+++ b/
profile.js
@@
-295,7
+295,7
@@
function ProfileCollection()
}
\r
this.UpdatAsync = function(name,data,cb){
\r
var item = GetItem(data);
\r
- pool.query("UPDATE profilelist SET ? WHERE name
= ?",[item
,name],cb);
\r
+ pool.query("UPDATE profilelist SET ? WHERE name
_hash = ? and name = ?",[item,murmurhash.v3(name)
,name],cb);
\r
}
\r
this.ClearAsync = function(cb){
\r
pool.query("TRUNCATE TABLE profilelist",null,cb);
\r