Decreasing load by top on search and chat lines

Last post 05-15-2007, 4:33 AM by FishTherapy. 3 replies.
Sort Posts: Previous Next
  •  05-05-2007, 12:15 PM 29220

    Decreasing load by top on search and chat lines

       Hi,
     
    We are trying to decrease the load on our server which gets hammer'd when about 1000 users get on the messenger at the same time which respectively effects the embedded plain chat module. A few thing that we had in mind was to minimize all search options. One of the search is the Web Messenger add contact page, can you specify what stored proc or function is working behind that page.
     
    Can we some how limit the lines of chat shown on a embedded Chat module, not sure on how the functionality work but if i log into plain chat and leave the window open with a dozen ppl chatting, the chat starts scrolling up. Fair enough but after half an hour if i scroll up i can see the whole chat for the half hour which would be 1000 lines ... would it be effective if we somehow showed only last 100 lines to the user. If yes then how can we achive that.
     
    If there are other points where anyone might think we can take the load of the chat please do let me know. We are using the latest version of CuteChat and CuteIM and its integrated with DNN 4.4
     
    Thanks for all the help
     
  •  05-08-2007, 7:18 AM 29338 in reply to 29220

    Re: Decreasing load by top on search and chat lines

    Any help on the above query would be really appreciated. Thanks
  •  05-15-2007, 4:09 AM 29669 in reply to 29220

    Re: Decreasing load by top on search and chat lines

    >>One of the search is the Web Messenger add contact page, can you specify what stored proc or function is working behind that page
     
    Please open CuteSoft.ChatWeb\CuteSoft_Client\CuteChat\SearchUser.ascx and find th following code:
     
    string[] uniquenames=CacheUniqueNames;
       if(uniquenames==null)
       {
        if(CategoryIndex==-1)
        {
         if(SearchKeyword=="")
          uniquenames=new string[0];
         else
          uniquenames=ChatApi.SearchUserUniqueNameByDisplayName(SearchKeyword);
        }
        else
        {
         uniquenames=ChatApi.SearchUserUniqueNamesByProperty(Categories[CategoryIndex].Name,SearchKeyword);
        }
       }
    >>Can we some how limit the lines of chat shown on a embedded Chat module,
    No.  However the user can always use the clear functions to remove all chat messages.
     
     
    >>If there are other points where anyone might think we can take the load of the chat please do let me know. We are using the latest version of CuteChat and CuteIM and its integrated with DNN 4.4
     
    Please follow the steps below:
     
    1. Open Settings.js.aspx file
     
    2. Find the following code:
     
    var Chat_Sync_Timeout=1000;
     
    3. Change it to 2000 oe 3000.
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-15-2007, 4:33 AM 29670 in reply to 29669

    Re: Decreasing load by top on search and chat lines

    Thanks for the response Adam, I was ideally looking to somehow put a 'top 20' on the list of User Names it returns in that SearchUserUniqueNameByDisplayName function. Is that possible? (I've noticed no stored procs are made when installing chat. Is function using some DNN proc to return user names?)
     
    My concern on limiting the lines of chat is memory usage or DB hits. Im thinking that either the whole chat going on a lounge is fetched from the DB and refreshed on the screen or kept in the memory and new msg's/lines appended to it (not knowing how the chat works of course). So if somehow we just kept last 50 lines in the memory or just fetch from the DB last 50 records should help. I hope im making sense here.
     
    I'll try the Chat Sync setting, Thanks
     
View as RSS news feed in XML