This is a creation in Article, where the information may have evolved or changed.
A friend's website is developed in PHP and always feels slow.
I changed the query SQL Server code into the Go language (more than 7,000 records)
Can feel a lot faster than before.
Try to continue learning the go language.
PHP does not use any framework.
Package Mainimport (_ "Github.com/lunny/godbc" "Github.com/go-xorm/xorm" "Net/http" "FMT") Func testweb (w http. Responsewriter,r *http. Request) {Const MSSQLCONNSTR = "Driver={sql Server}"; SERVER=127.0.0.1,1592;DATABASE=DDD; uid=; pwd=; " Engine, err: = Xorm. Newengine ("ODBC", MSSQLCONNSTR) res, err: = engine. Query ("Select top 10000 b_name,b_yz from book where B_sh=1 and b_id>10053") if err! = Nil {fmt. Println ("", err) return}for I:=0;i<len (res), I++{w.write (res[i]["B_name"]) w.write (res[i]["B_yz"])}defer engine. Close ()}func Main () {http. Handlefunc ("/", TestWeb) err:=http. Listenandserve (": 9999", nil) if err!=nil{fmt. Println ("Listen and Serve", Err)}}