mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-06 06:53:12 +00:00
The query result footprint for cassandra-stress mutation as reported by tests/memory-footprint increased by 18% from 285 B to 337 B. perf_simple_query shows slight regression in throughput (-8%): build/release/tests/perf/perf_simple_query -c4 -m1G --partitions 100000 Before: ~433k tps After: ~400k tps
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
namespace query {
|
|
|
|
class qr_cell stub [[writable]] {
|
|
std::experimental::optional<api::timestamp_type> timestamp; // present when send_timestamp option set in partition_slice
|
|
std::experimental::optional<gc_clock::time_point> expiry; // present when send_expiry option set in partition_slice
|
|
|
|
// Specified by CQL binary protocol, according to cql_serialization_format in read_command.
|
|
bytes value;
|
|
};
|
|
|
|
class qr_row stub [[writable]] {
|
|
std::vector<std::experimental::optional<qr_cell>> cells; // ordered as requested in partition_slice
|
|
};
|
|
|
|
class qr_clustered_row stub [[writable]] {
|
|
std::experimental::optional<clustering_key> key; // present when send_clustering_key option set in partition_slice
|
|
qr_row cells; // ordered as requested in partition_slice
|
|
};
|
|
|
|
class qr_partition stub [[writable]] {
|
|
std::experimental::optional<partition_key> key; // present when send_partition_key option set in partition_slice
|
|
qr_row static_row;
|
|
std::vector<qr_clustered_row> rows; // ordered by key
|
|
};
|
|
|
|
class query_result stub [[writable]] {
|
|
std::vector<qr_partition> partitions; // in ring order
|
|
};
|
|
|
|
}
|