-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
area/metadataperformanceImproves performance of existing featuresImproves performance of existing features
Milestone
Description
Our driver issues a bunch of internal CQL statements periodically, e.g. to fetch topology and schema information. These statements are currently not prepared, which forces the database to meticulously parse their CQL over and over, which is a waste of CPU.
The solution is to rewrite all internal statements so that they're prepared once, and then executed. We have a helper function used mainly for internal queries - query_all. Ideally, all call sites of that function should be translated to execute_all.
Example:
| let mut peers_query = Query::new("select peer, data_center, rack, tokens from system.peers"); |
Metadata
Metadata
Assignees
Labels
area/metadataperformanceImproves performance of existing featuresImproves performance of existing features