I recompiled my backend which has used the deprecated driver before with the new one (v2.0.1) and tested the performance.
The results really surprised me. The average performance with the new driver 2.0.1 is about five times slower then when the deprecated driver is being used.
The backend just executes simple SELECT requests (prepared statements are not used.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-us...@lists.datastax.com.
The database is pretty simple: this is a list of object links. A link is directed and defined by three values
- idfrom (source object ID)
- idto (destination object ID)
- score (link score)
schema:
CREATE KEYSPACE megalink WITH replication = {'class': 'NetworkTopologyStrategy', 'BEMDF1': '2', 'BEMDF2': '2', 'STVAF3': '2'} AND durable_writes = true;
CREATE TABLE megalink.pubmed_pubmed_v1 (
idfrom bigint,
idto bigint,
score int,
PRIMARY KEY (idfrom, idto)
) WITH CLUSTERING ORDER BY (idto ASC)
AND bloom_filter_fp_chance = 0.1
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
AND comment = ''
AND compaction = {'min_threshold': '4', 'tombstone_compaction_interval': '3600', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy', 'max_threshold': '32'}
AND compression = {}
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 3600
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
The backend creates a new session for each query.
- create a new session
- execute one query, there are two possible query types:
1) SELECT * FROM megalink.pubmed_pubmed_v1 WHERE idfrom=12345;
2) SELECT * FROM megalink.pubmed_pubmed_v1 WHERE idfrom IN (12345, 56789);
- close session
The average result size is about 100 rows or less
Thanks,
-Stan