|
@@ -539,8 +539,8 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
|
|
|
" order by a.id desc", aboutDbMsg[s.ModuleFlag].MysqlTable, Baseinfo, userStr, leftJoinStr, strings.Join(querys, " and "))
|
|
|
logx.Info("searchSql", searchSql)
|
|
|
//查询总数
|
|
|
- logx.Info(fmt.Sprintf("select /*+ HASH_JOIN(a,b)*/ count(a.id) " + searchSql))
|
|
|
- count = spqp.BaseServiceMysql.CountBySql(fmt.Sprintf("select /*+ HASH_JOIN(a,b)*/ count(a.id) " + searchSql))
|
|
|
+ logx.Info(fmt.Sprintf("select count(a.id) " + searchSql))
|
|
|
+ count = spqp.BaseServiceMysql.CountBySql(fmt.Sprintf("select count(a.id) " + searchSql))
|
|
|
start2 = time.Now().Unix()
|
|
|
logx.Info("count:", count, "---", s.ModuleFlag)
|
|
|
log.Println("查询数据总数用时", start2-start)
|