去掉启动时预读数据,加快启动速度
This commit is contained in:
@@ -61,7 +61,6 @@ import static win.liyufan.im.MyInfoType.*;
|
|||||||
public class MemoryMessagesStore implements IMessagesStore {
|
public class MemoryMessagesStore implements IMessagesStore {
|
||||||
private static final String MESSAGES_MAP = "messages_map";
|
private static final String MESSAGES_MAP = "messages_map";
|
||||||
private static final String GROUPS_MAP = "groups_map";
|
private static final String GROUPS_MAP = "groups_map";
|
||||||
private static final String GROUP_ID_COUNTER = "group_id_counter";
|
|
||||||
static int dumy = 0;
|
static int dumy = 0;
|
||||||
static final String GROUP_MEMBERS = "group_members";
|
static final String GROUP_MEMBERS = "group_members";
|
||||||
|
|
||||||
@@ -120,14 +119,6 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initStore() {
|
public void initStore() {
|
||||||
//TODO reload data from mysql
|
|
||||||
HazelcastInstance hzInstance = m_Server.getHazelcastInstance();
|
|
||||||
MultiMap<String, WFCMessage.GroupMember> groupMembers = hzInstance.getMultiMap(MemoryMessagesStore.GROUP_MEMBERS);
|
|
||||||
if (groupMembers.size() == 0) {
|
|
||||||
databaseStore.reloadFriendsFromDB(hzInstance);
|
|
||||||
databaseStore.reloadFriendRequestsFromDB(hzInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
updateSensitiveWord();
|
updateSensitiveWord();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user