Better HN
topnewbestaskshowjobs
Log inSign up

gulcin_xata

4 karma · joined Sep 2, 2024 (2y ago) · 17 submissions

Staff Database Engineer, mostly interested in Postgres.
Submissions

comment 10mo ago · link · parent

For many production setups, taking a database snapshot involves transferring significant amounts of data over the network. The standard way to do this efficiently is to process data in batches. Batching reduces per-request overhead and helps maximize throughput, but it also introduces an important tuning problem: choosing the right batch size.

A batch size that works well in a low latency environment can become a bottleneck when snapshots run across regions or under less predictable network conditions. Static batch size configuration assumes stable networks, which rarely reflects reality.

In this blog post we describe how we used automatic batch size tuning to optimize data throughput for Postgres snapshots, the constraints we worked under and how we validated that the approach actually improves performance in production-like environments for our open source pgstream tool.

2.

Optimizing data throughput for Postgres snapshots with batch size auto-tuning(xata.io ↗)

1 points · by gulcin_xata · 10mo ago · 1 comment

comment 1y ago · link · parent

Thanks for the feedback!

comment 1y ago · link · parent

Ah, thanks for the sharing this insight.

5.

From DBA to AI Agent: Lessons from 10 Years with Postgres(xata.io ↗)

2 points · by gulcin_xata · 1y ago · discuss

comment 1y ago · link · parent

I agree, it is not so straightforward to find out.

comment 1y ago · link · parent

Hey!

(Disclaimer: I work at Xata.) Just wanted to mention that we also support anonymization, in case that’s something you're looking into: https://xata.io/postgres-data-masking

comment 1y ago · link · parent

Recently we launched Xata Agent, an open-source AI agent which helps diagnose issues and suggest optimizations for PostgreSQL databases.

To make sure that Xata Agent still works well after modifying a prompt or switching LLM models we decided to test it with an Eval. In this blog, we'll explain how we used Vercel's AI SDK and Vitest to build an Eval in TypeScript.

9.

Writing an LLM Eval with Vercel's AI SDK and Vitest(xata.io ↗)

1 points · by gulcin_xata · 1y ago · 1 comment

comment 1y ago · link · parent

Tried with a video I previously watched and got a good enough summary, also liked the UI. Did you implement a RAG?

comment 1y ago · link · parent

I see you're using pg-schema-diff for schema diffing, hadn’t come across it before, so thanks for mentioning it!

Have you seen pgroll? https://github.com/xataio/pgroll It is a Postgres schema migration tool for achieving zero downtime, minimal locking schema changes. Thought it might be interesting for you. I also checked the unsupported operations in pg-schema-diff, and from a quick look, pgroll seems to cover more migration types: https://pgroll.com/docs/v0.8.0/getting-started

comment 1y ago · link · parent

Have you seen pgstream? https://github.com/xataio/pgstream It is similar to pg_replicate and could be a good fit for streaming CDC data from Postgres. There is no built-in output plugin specifically for DuckDB but it might help you for building something lightweight and custom for your use case.

comment 2y ago · link · parent

Cool, thanks. Let me know if I can help in any way.

comment 2y ago · link · parent

Is this an open-source product? How can we give feedback?

comment 2y ago · link · parent

What about Xata?

comment 2y ago · link · parent

pgroll is under active development, feel free to let us know if you have any feature requests here: https://feedback.xata.io/