Commit fb09052
committed
datastore: UNION ALL for mysql list entries query
We have seen high CPU on mysql DB. Optimizing this frequent query should
help. This brings the mysql 8 and above that supports WITH clause on par
with postgresql. Essentially port
#4111 to
buildFetchRegistrationEntriesQueryMySQLCTE.
Signed-off-by: ztrain <ztrain@uber.com>1 parent 406735f commit fb09052
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2931 | 2931 | | |
2932 | 2932 | | |
2933 | 2933 | | |
2934 | | - | |
| 2934 | + | |
2935 | 2935 | | |
2936 | 2936 | | |
2937 | 2937 | | |
| |||
2944 | 2944 | | |
2945 | 2945 | | |
2946 | 2946 | | |
2947 | | - | |
| 2947 | + | |
2948 | 2948 | | |
2949 | 2949 | | |
2950 | 2950 | | |
2951 | 2951 | | |
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
2955 | | - | |
| 2955 | + | |
2956 | 2956 | | |
2957 | 2957 | | |
2958 | 2958 | | |
| |||
0 commit comments