Readit News logoReadit News
compton93 commented on Define policy forbidding use of AI code generators   github.com/qemu/qemu/comm... · Posted by u/todsacerdoti
JonChesterfield · 6 months ago
Interesting. Harder line than the LLVM one found at https://llvm.org/docs/DeveloperPolicy.html#ai-generated-cont...

I'm very old man shouting at clouds about this stuff. I don't want to review code the author doesn't understand and I don't want to merge code neither of us understand.

compton93 · 6 months ago
I don't want to review code the author doesn't understand

This really bothers me. I've had people ask me to do some task except they get AI to provide instructions on how to do the task and send me the instructions, rather than saying "Hey can you please do X". It's insulting.

compton93 commented on Game Hacking – Valve Anti-Cheat (VAC)   codeneverdies.github.io/p... · Posted by u/LorenDB
tines · 6 months ago
That would require a lot more than editing memory offsets though.
compton93 · 6 months ago
No they just read the memory. The whole point of an external cheat is to only read memory. They can still use Win32 to send inputs.
compton93 commented on Game Hacking – Valve Anti-Cheat (VAC)   codeneverdies.github.io/p... · Posted by u/LorenDB
tines · 6 months ago
How did editing memory offsets auto-fire based on enemies entering your crosshairs? To my knowledge this would require some code hooking at least. (Or are you using "editing memory offsets" to mean "writing new instructions into the process' memory"?)
compton93 · 6 months ago
Win32 API mouse input and trigger a mouse click in Windows when crosshair on enemy head (more likely when crosshair is within enemy head position).
compton93 commented on Snowflake to buy Crunchy Data for $250M   wsj.com/articles/snowflak... · Posted by u/mfiguiere
buremba · 7 months ago
It's interesting that Snowflake went shopping for Crunchy Data over Neon. While Neon focused on bringing compute and storage separation to OLTP, Crunchy Data focused more on bringing OLTP/PostgreSQL closer to OLAP with DuckDB and Iceberg.

In a way, Crunch Data was a competitor to Snowflake as they literally name themselves as "Postgresql Data Warehouse" but correct me if I'm wrong. Neon sounds more complementary to Snowflake as they were struggling with an OLTP backend, namely their Unistore product, which was announced 3 years ago but never went into general availability due to its scalability issues.

Maybe Neon was 4x more expensive, but this acquisition sounds more like an answer to Databricks than a strategic acquisition if I'm being honest. Apparently, Crunchy had $30M ARR, so it's 8x ARR, which is a cheaper answer to Databricks.

compton93 · 7 months ago
> literally name themselves as "Postgresql Data Warehouse" but correct me if I'm wrong

That's not their primary product. Crunchy Postgres is their primary offering and they recently announced Crunchy Data Warehouse.

compton93 commented on Conformance checking at MongoDB: Testing that our code matches our TLA+ specs   mongodb.com/blog/post/eng... · Posted by u/todsacerdoti
compton93 · 7 months ago
I consulted on a project that was using MongoDB even though it was obvious from the concept that an RDBMS would be better, however I went in with an open mind and gave MongoDB a red hot crack. It straight up ignored indexes with no explainable reason why. We had a support contract and they just gave us the run around.
compton93 commented on Migrating to Postgres   engineering.usemotion.com... · Posted by u/shenli3514
Tadpole9181 · 7 months ago
The JOIN mode has been in preview for over a year and is slated for GA release within a few months. Which has been on their roadmap.

The removal of the rust service is available in preview for Postgres as of 6.7.[1]

Rewriting significant parts of a complex codebase used by millions is hard, and pushing it to defaults requires prolonged testing periods when the worst case is "major data corruption".

[1]: https://www.prisma.io/blog/try-the-new-rust-free-version-of-...

compton93 · 7 months ago
They've had flags and work arounds for ages. Not sure what point you are trying to make? But like you said I've never used it, only heard of it lol.
compton93 commented on Migrating to Postgres   engineering.usemotion.com... · Posted by u/shenli3514
ScalaHanSolo · 7 months ago
Author here. Optimizing bad queries was absolutely part of the issues with the performance. The issue with cockroach was that the visibility into those bad queries was not great. It wasn't until we had the superior tooling from the Postgres ecosystem that we were able to track them down more efficiently.
compton93 · 7 months ago
When you get a chance can you take a look my reply here: https://news.ycombinator.com/item?id=43990502

When I first stepped into a DBA role with CockroachDB I was confused why indexes we obviously need were in unused indexes. It wasn't until I did an explain on the queries I learned the planner was doing zig-zag joins instead.

compton93 commented on Migrating to Postgres   engineering.usemotion.com... · Posted by u/shenli3514
Tadpole9181 · 7 months ago
It's pretty obvious when somebody has only heard of Prisma, but never used it.

- Using `JOIN`s (with correlated subqueries and JSON) has been around for a while now via a `relationLoadStrategy` setting.

- Prisma has a Rust service that does query execution & result aggregation, but this is automatically managed behind the scenes. All you do is run `npx prisma generate` and then run your application.

- They are in the process of removing the Rust layer.

The JOIN setting and the removing of the middleware service are going to be defaults soon, they're just in preview.

compton93 · 7 months ago
They've been saying that for 3 years. We actually had a discount for being an early adopter. But hey its obvious Ive never used it and only heard of it.
compton93 commented on Migrating to Postgres   engineering.usemotion.com... · Posted by u/shenli3514
moonikakiss · 7 months ago
great blog. It seems like you might benefit from columnar storage in Postgres for that slow query that took ~20seconds.

It's interesting that people typically think of columnstores for strict BI / analytics. But there are so many App / user-facing workloads that actually need it.

ps: we're working on pg_mooncake v0.2. create a columnstore in Postgres that's always consistent with your OLTP tables.

It might help for this workload.

compton93 · 7 months ago
What are your thoughts on Fujitsu's VCI? I typically work for ERP's but im always advocating to offload the right queries to columnar DB's (not for DB performance but for end user experience).
compton93 commented on Migrating to Postgres   engineering.usemotion.com... · Posted by u/shenli3514
etblg · 7 months ago
> It's true that Prisma currently doesn't do JOINs for relational queries. Instead, it sends individual queries and joins the data on the application level.

..........I'm sorry, what? That seems........absurd.

edit: Might as well throw in: I can't stand ORMs, I don't get why people use it, please just write the SQL.

compton93 · 7 months ago
It is. But wait... it doesn't join the data on the application level of your application. You have to deploy their proxy service which joins the data on the application level.

u/compton93

KarmaCake day122March 23, 2022
About
Modern era DBA
View Original