cockroachdb

Local development with cloud-spanner

时光怂恿深爱的人放手 提交于 2019-12-09 14:07:53
问题 Is there any way to do local development with cloud spanner? I've taken a look through the docs and the CLI tool and there doesn't seem to be anything there. Alternatively, can someone suggest a SQL database that behaves similarly for reads (not sure what to do about writes)? EDIT: To clarify, I'm looking for a database which speaks the same flavour of SQL as Cloud Spanner so I can do development locally. The exact performance characteristics are not as important as the API and consistency

How can I connect to CockroachDB from outside the Kubernetes cluster?

早过忘川 提交于 2019-12-04 05:57:46
I've set up and deployed a Kubernetes stateful set containing three CockroachDB pods, as per docs . My ultimate objective is to query the database without requiring use of kubectl. My intermediate objective is to query the database without actually shelling into the database pod. I forwarded a port from a pod to my local machine, and attempted to connect: $ kubectl port-forward cockroachdb-0 26257 Forwarding from 127.0.0.1:26257 -> 26257 Forwarding from [::1]:26257 -> 26257 # later, after attempting to connect: Handling connection for 26257 E0607 16:32:20.047098 80112 portforward.go:329] an

Local development with cloud-spanner

杀马特。学长 韩版系。学妹 提交于 2019-12-03 22:27:01
Is there any way to do local development with cloud spanner? I've taken a look through the docs and the CLI tool and there doesn't seem to be anything there. Alternatively, can someone suggest a SQL database that behaves similarly for reads (not sure what to do about writes)? EDIT: To clarify, I'm looking for a database which speaks the same flavour of SQL as Cloud Spanner so I can do development locally. The exact performance characteristics are not as important as the API and consistency behaviour. I don't think Cockroach meets these requirements? There is currently no local development

How to do bulk (multi row) inserts with JpaRepository?

只愿长相守 提交于 2019-11-27 08:17:19
When calling the saveAll method of my JpaRepository with a long List<Entity> from the service layer, trace logging of Hibernate shows single SQL statements being issued per entity. Can I force it to do a bulk insert (i.e. multi-row) without needing to manually fiddle with EntityManger , transactions etc. or even raw SQL statement strings? With multi-row insert I mean not just transitioning from: start transaction INSERT INTO table VALUES (1, 2) end transaction start transaction INSERT INTO table VALUES (3, 4) end transaction start transaction INSERT INTO table VALUES (5, 6) end transaction to:

How to do bulk (multi row) inserts with JpaRepository?

时间秒杀一切 提交于 2019-11-26 11:05:09
问题 When calling the saveAll method of my JpaRepository with a long List<Entity> from the service layer, trace logging of Hibernate shows single SQL statements being issued per entity. Can I force it to do a bulk insert (i.e. multi-row) without needing to manually fiddle with EntityManger , transactions etc. or even raw SQL statement strings? With multi-row insert I mean not just transitioning from: start transaction INSERT INTO table VALUES (1, 2) end transaction start transaction INSERT INTO