mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
重构
This commit is contained in:
parent
5f8498072b
commit
a94996c321
@ -10,10 +10,10 @@ import (
|
||||
func Test_all(t *testing.T) {
|
||||
|
||||
engine := NewDefaultEngine()
|
||||
for i := 1; i <= 300000; i++ {
|
||||
engine.AddTextLog("date", fmt.Sprintf(`DEBUG ==> Preparing: SELECT id,order_code,order_time,verification_code,tenant_code,tenant_name,credentials_type,credentials_number,mobilephone,license_plate_number,variety,origin_place,unit_code,unit_price,area,begin_time,end_time,lease_time,iz_pay_fees,pay_amount,pay_method,valid_until,order_use_status,member_id,create_by,create_time,update_by,update_time,sys_org_code FROM f1530007 WHERE (order_use_status%d = ?) lav%d`, i, i), "sssss_ssss")
|
||||
for i := 1; i <= 10000; i++ {
|
||||
engine.AddTextLog("date", fmt.Sprintf(`DEBUG ==> Preparing: SELECT id,aaa,bbb,ccc,ddd,eee,fff,ggg FROM abcde WHERE (aaa%d = ?) lav%d`, i, i), "sssss_ssss")
|
||||
}
|
||||
time.Sleep(time.Duration(30) * time.Second)
|
||||
time.Sleep(time.Duration(10) * time.Second)
|
||||
|
||||
// for i := 1; i <= 10000; i++ {
|
||||
// engine.AddTextLog(` java.sql.SQLException: them aalav`)
|
||||
|
||||
@ -37,8 +37,8 @@ func Run() {
|
||||
gweb.RegisterController(method.POST, contextPath+"/search", controller.LogSearchController)
|
||||
gweb.RegisterController(method.POST, contextPath+"/add", controller.LogAddController)
|
||||
|
||||
// 默认引擎空转一下,触发未建索引继续建
|
||||
go ldb.NewDefaultEngine().AddTextLog("", "", "")
|
||||
})
|
||||
|
||||
// 默认引擎空转一下,触发未建索引继续建
|
||||
ldb.NewDefaultEngine().AddTextLog("", "", "")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user