Commit Graph

737 Commits

Author SHA1 Message Date
An Tao 037b9e7eff
Merge pull request #60 from an-tao/dev
Use the PQSendQuery() function instead of the PQsendQueryParams() function when the number of parameters is 0.
2019-02-25 21:00:52 +08:00
antao 769d645682 Modify the PgConnection class 2019-02-25 17:36:47 +08:00
antao 429490bd78 Modify DbClientImpl 2019-02-24 09:55:26 +08:00
An Tao 1b9e91361c
Merge pull request #59 from an-tao/dev
Improve database client performance and fix some bugs
2019-02-23 01:28:35 +08:00
antao 00b83735f1 Change version to 0.9.25 2019-02-23 01:07:05 +08:00
antao bb686d41d8 Use experimental::basic_string_view on gcc5 2019-02-23 01:02:14 +08:00
antao 4d46ebed9b Add some comments 2019-02-22 18:00:25 +08:00
antao 70e7089e7d Process the HEAD method request 2019-02-22 14:03:34 +08:00
antao 90e63c1a0f Modify the TransactionImpl class 2019-02-21 20:36:18 +08:00
antao 52f1888a14 Use persisted idle-callback in db connections 2019-02-21 20:00:22 +08:00
antao 15ab5e1558 Use nullptr to clear std::function objects 2019-02-21 15:46:54 +08:00
antao aab31ba64e Modify the HttpServer class 2019-02-21 14:02:05 +08:00
antao 44416f1456 Optimize db client classes 2019-02-21 13:21:07 +08:00
an-tao 450e5c5e0c Use std::string_view to improve performance 2019-02-20 23:32:00 +08:00
antao 4d1c0ffe06 Optimize content-type and status in http header 2019-02-20 18:16:55 +08:00
antao 6d97ea5992 Add r-reference version for the SqlBinder class 2019-02-20 14:18:57 +08:00
antao 7f21f45a1b Add the fast db client enablation option 2019-02-20 13:23:50 +08:00
antao 84ab5d369e Modify the PgConnection class 2019-02-19 18:52:25 +08:00
antao 6c4ad73f7a Use prepared statement in postgresql connections 2019-02-19 15:06:16 +08:00
antao ca98eccdfe Disable db fast clients 2019-02-19 10:08:00 +08:00
an-tao 5629efa910 Fix a bug in the DbClientLockFree class 2019-02-18 23:27:30 +08:00
antao 358e45598b Add lock-free db client class 2019-02-18 18:42:10 +08:00
antao 8e16228458 Reduce the critical region in the handleNewTask() method to improve performance 2019-02-18 14:59:35 +08:00
antao 2370a3f89f Fix a bug in the MysqlConnection class 2019-02-18 14:26:21 +08:00
an-tao 1600cb98fe Modify the number of event loops in the DbClientImpl class 2019-02-18 11:10:30 +08:00
antao 13417edf10 Improve the performance of dbClient 2019-02-17 20:32:16 +08:00
antao 38163a26a6 Modify the interface of the DbClient class 2019-02-16 02:11:30 +08:00
antao 136ab1d460 Modify the interface of the DbClient class 2019-02-16 01:43:04 +08:00
antao 8829203d04 Modify the Session class and the HttpViewData class 2019-02-12 15:47:32 +08:00
antao 2d3ff02e03 Add some comments 2019-02-12 13:18:59 +08:00
antao a44a0fc3e8 Add some comments 2019-02-04 14:48:36 +08:00
antao e7dbb3bbc5 Remove 'using namespace drogon' from public headers 2019-02-02 13:45:40 +08:00
antao bdcb42ce55 Merge branch 'master' of https://github.com/an-tao/drogon 2019-02-02 13:31:10 +08:00
antao e77b558a71 Modify urlDecode() method 2019-02-02 13:26:19 +08:00
an-tao 287a7b5208 Add a header including in linux 2019-02-02 12:09:14 +08:00
antao 7b6211f2ce Modify code style 2019-02-02 11:47:28 +08:00
antao 7041783579 Modify code style 2019-02-02 11:34:00 +08:00
antao 5b24e90f94 Modify README 2019-02-02 10:12:57 +08:00
antao 82100926e5 Change version to 0.9.24 2019-02-01 18:59:13 +08:00
An Tao efaece8824
Merge pull request #55 from an-tao/remove-spin-locks
Remove spin locks to improve performance
2019-02-01 18:50:04 +08:00
antao d16287c9dd Remove spin-locks 2019-02-01 18:00:34 +08:00
antao 60ac951b38 Update the submodule trantor 2019-02-01 16:41:58 +08:00
An Tao 97667f358e
Merge pull request #54 from an-tao/dev
Modify the SpinLock
2019-02-01 10:11:34 +08:00
antao ad86c8f66e Modify the SpinLock 2019-02-01 00:32:35 +08:00
antao 7bdd421917 Format code 2019-01-31 15:48:04 +08:00
antao 1746e36eb4 1.Update the submodule trantor;
2.Optimize the logic of connection counting;
2019-01-31 14:12:01 +08:00
An Tao 715affad08
Merge pull request #52 from an-tao/dev
Add json format response benchmark
2019-01-31 10:42:27 +08:00
antao 022132c33e Add json format response benchmark 2019-01-31 10:23:12 +08:00
antao 5b3049e854 Add a macro 2019-01-30 15:08:35 +08:00
antao 7828dd11ad Change version to 0.9.23 2019-01-30 14:58:14 +08:00