数据库问题:
1.发帖,回帖,用不到索引
2.看帖,看附件,用不到索引
3.删贴,删回复,用不到索引
4.最新帖子,用不到索引
c#问题:
1. 喜欢用for循环,如 读取某个论坛数据时,步骤如下:
1)先从数据库读取所有论坛信息
2)然后for循环,找到合适的论坛id
3)然后for循环,处理版主信息
里面有很多的for循环嵌套
2011-06-18 访问失败,报异常 ,System.OutOfMemoryException
Stack trace: at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at System.Xml.XPathNodeList.ReadUntil(Int32 index)
at System.Xml.XPathNodeList.get_Count()
at System.Xml.XmlNode.SelectSingleNode(String xpath)
at Discuz.Cache.DNTCache.AddObject(String xpath, Object o)
at Discuz.Forum.Scoresets.GetScoresCache(String cacheKey)
at Discuz.Forum.Scoresets.GetTopicAttachCreditsTrans()
at Discuz.Forum.PageBase..ctor()
at Discuz.Web.UI.TopicPage..ctor()
------------------------------------