Replies: 3 comments 1 reply
-
I think it's because crdb is a distributed newsql database. Your data in crdb is stored in a sorted map. This sorted map is divided into ranges. Each range is replicated 3 times by default. So for each write, there is overhead of replication compared to monolithic database. |
Beta Was this translation helpful? Give feedback.
-
I ran it on a single node setup as well. Performance was slightly worse than 3 node. |
Beta Was this translation helpful? Give feedback.
-
Cockroach is going to need more hardware to scale your writes- Your replication factor determines your "quorum group" size: you need more "quorum groups". As of the current day, v23, those numbers are fairly decent for one "quorum group". You get stronger
I wish CockroachDB had a way to trade consistency for |
Beta Was this translation helpful? Give feedback.
-
Hi,
I work in an investment house where we process time series data and fund position data for quantitative analytics and data science. We query about 1800 time series (4.5mil rows), run some calculations and insert the results multiple times per hour. About 200 of these processes run throughout the day. We also have on-the-fly reports/analysis/optimizations generated on our analytics platform.
I replicated a simple business use case as a benchmark for MariaDB, CRDB and Timescale DB. I setup pretty much standard tables for all three - no fancy indexes or hyper tables from timescale. I used two types of data sets
Both Maria DB and Timescale is "single node". CRDB is running as 3 nodes.
Can anyone explain the differences here, specifically as to why CRDB is so slow with inserts?
All inserts/queries were run in Python3 using
sqlalchemy create_engine
,pandas read_sql_query
andDataFrame.to_sql
. Below is the elapsed time and rows per second (r/s) for each benchmark. Less time elapsed and more r/s is better.I know this is probably lacking in detail which I can share. But understand that these are simple setups and using out-of-the-box configs. I do not want to jump through hoops to optimize given that other products are out-of-the-box faster with simpler and more convenient setups.
Beta Was this translation helpful? Give feedback.
All reactions