-
在**Comment**, **Tag**, **Topic**和**User**表中,都有一个叫做`countToday`的SQL查询,使用了MySQL的*to_days*函数。这个函数并不能很好的利用 #116 中添加的**in_time**上的索引,即使加上索引之后也会全表扫描并逐一执行函数。将SQL查询改写后就可以很好的利用上索引,优化查询性能。下面是对于`Comment`表的例子:
…
wtune updated
4 years ago
-
对于应用中的某些查询,数据库中缺少对应的索引可能导致查询速度较慢。例如:
### comment.in_time
在`comment`表的`in_time`上添加索引,可以提升通过`selectAllForAdmin`进行查询的操作的性能,因为改SQL查询可能包含一个指定时间范围的条件。
https://github.com/tomoya92/pybbs/blob/94809bb…
wtune updated
4 years ago
-
idea中运行提示,Table 'pybbs.flyway_schema_history' doesn't exist,mysql的表创建不成功
-
```
10:21:49.169 OPHYER [XNIO-1 task-5] INFO c.y.pybbs.config.realm.MyShiroRealm - 用户:admin 正在登录...
10:21:49.328 OPHYER [XNIO-1 task-5] WARN o.a.shiro.mgt.DefaultSecurityManager - Delegate Remembe…
-
先声明,由于本人使用的是同学下载的master分支,没有下载稳定版本,因此有些功能可能作者还在开发,也可能bug已经在新的提交中解决。因此下面的bug仅供参考。
本人由于课程需求,下载了此系统进行系统二次开发,下面细数遇到的一些bug。
## 1 验证码无法验证问题,session无效
(此问题作者可以无视,并不是作者的错),由于作者使用session进行验证码验证。但由于我此前在本…
-
配置好数据源,从co.yiiu.pybbs.PybbsApplication启动,提示
Description:
Field configuration in co.yiiu.pybbs.config.FreemarkerConfig required a bean of type 'freemarker.template.Configuration' that could not be …
-
```
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerConfig': Unsatisfied dependency expressed through field 'topicListDirective'; nested exc…
-
![image](https://user-images.githubusercontent.com/32013488/60326868-1c0d1980-99bd-11e9-8987-47099af8b425.png)
这次更新导致这里全部报错,`if (systemConfigService.selectAllConfig().get("search").toString().equals(…
-
![image](https://user-images.githubusercontent.com/32013488/60378152-d6019580-9a50-11e9-9762-5277191bcb98.png)
发布话题标签选择在哪里?
![image](https://user-images.githubusercontent.com/32013488/60378160-fd586…
-
先在数据库中添加一个角色,
然后再页面的角色列表中点击这个角色的编辑按钮,直接500,sql异常,
`
org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in yo…