Closed IIvyPy closed 1 year ago
Please Help me, thank you.
I create ybDB using kubenetes. like this:
kubectl create namespace yb-demo helm install yb-demo yugabytedb/yugabyte \ --version 2.15.2 \ --set resource.master.requests.cpu=0.5,resource.master.requests.memory=0.5Gi,\ resource.tserver.requests.cpu=0.5,resource.tserver.requests.memory=0.5Gi,\ replicas.master=1,replicas.tserver=1 --namespace yb-demo
@IIvyPy what's your query? And how many rows in the table?
@IIvyPy what's your query? And how many rows in the table?
query is just: select count(*) from author_dns.dns_ip_location; the rows is: 2712168
@IIvyPy the database is distributed by default and is not optimized as an OLAP but mostly for OLTP workloads: https://docs.yugabyte.com/preview/faq/general/#when-is-yugabytedb-not-a-good-fit. It will be slower than a single PostgreSQL instance in this scenario.
kubectl create namespace yb-demo helm install yb-demo yugabytedb/yugabyte \ --version 2.15.2 \ --set resource.master.requests.cpu=0.5,resource.master.requests.memory=0.5Gi,\ resource.tserver.requests.cpu=0.5,resource.tserver.requests.memory=0.5Gi,\ replicas.master=1,replicas.tserver=1 --namespace yb-demo
Please read the hardware requirements: https://docs.yugabyte.com/preview/deploy/checklist/#hardware-requirements.
You are using the database in the worst way possible, OLAP + extremely low hardware + comparing against a non-distributed PostgreSQL.
Jira Link: DB-3924
Description
when I exec an select-SQL, It seems the YbDB is always slower than Postgres(single). here is YbDB:
where here is Postgres:
here is my DDL: