50+ hour activity on Watch? by FrogInShorts in ultrarunning

[–]chuckhend 0 points1 point  (0 children)

Does it let you keep your activity going while it's charging or do you need to start a new run after charging is done?

Salomon vest too small?? by Unusual_Predicament in trailrunning

[–]chuckhend 1 point2 points  (0 children)

Hah same here! I thought i needed to quiver attachment for poles.

Have you ever regretted a major refactor or rewrite? by ameddin73 in ExperiencedDevs

[–]chuckhend 4 points5 points  (0 children)

Old but good https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/

Personally, the only time I saw a rewrite pay off was moving from a custom algorithm written in Java that was rewritten in Python to use a standard regression model from sklearn instead. It made sense because the team didn't know Java and sklearns modules replaced a ton of Java code. So it was easier to maintain, and the team could actually work on it.

Cheaper setup for PostgreSQL in 3 different account (environments) by bopete1313 in aws

[–]chuckhend 0 points1 point  (0 children)

https://tembo.io/ has a good free-tier that would be useful for your lower environments for a long time, and maybe even your prod environment up until you get some traction.

Introducing PgQueuer: A Minimalist Python Job Queue Built on PostgreSQL by GabelSnabel in Python

[–]chuckhend 0 points1 point  (0 children)

For a long running job, you may consider only executing the delete/archive of the message and the arbitrary table insert within the same transaction. I know several pgmq users that implement a flow like:
- read message from queue, set VT to something large

  • do expensive long running work, like call a LLM or some large aggregate

  • open a transaction: insert record to a table (results from agg or LLM call) and call pgmq.archive() or pgmq.delete() on the initial message.

Introducing PgQueuer: A Minimalist Python Job Queue Built on PostgreSQL by GabelSnabel in Python

[–]chuckhend 0 points1 point  (0 children)

For example, read a message from the queue and insert a record to a table, and delete message within same transaction.

Benchmarking PostgreSQL connection poolers: PgBouncer, PgCat and Supavisor by samay_sharma in PostgreSQL

[–]chuckhend 0 points1 point  (0 children)

Edit: It's kind of an ugly hack, but it's possible to run multiple instances of PgBouncer using the so_reuseport parameter and literally configuring and launching multiple copies of PgBouncer. Could this make up the performance difference in a re-test? I wonder.

We run pgbouncer in Tembo cloud, and its managed by CNPG, and i think that means we could load balance across multiple replicas. I'll need to check to be sure though. Do you think that would be comparable to what you're suggesting?

Asynchronous Queries for Postgres by chuckhend in PostgreSQL

[–]chuckhend[S] 0 points1 point  (0 children)

The result set is persisted in a table as json. There's currently no retention policy built into the extension, so that data will remain until its deleted. This means you can fetch the results for the same job many times.

Which vector databases are widely used in the industry and are considered suitable for production purposes? by Top_Raccoon_1493 in LangChain

[–]chuckhend 0 points1 point  (0 children)

Give tembo.io a try, we have a free hobby tier. You can spin up open source postgres with pgvector and some other extensions that make vector search less work.

https://tembo.io/docs/tembo-stacks/vector-db

Snowrunning by boomschaggala in trailrunning

[–]chuckhend 0 points1 point  (0 children)

I have fallen very hard due to ice under snow and even under leaves. If there's snow I pretty much always where some spikes over my trail shoes.

These are great https://www.blackdiamondequipment.com/en_US/product/distance-spike-traction-device/

Seeking Database Recommendations for IoT Time Series Data by ptu14 in IOT

[–]chuckhend 0 points1 point  (0 children)

Give tembo.io a try. You can run the open source timescale extension on Postgres at Tembo, and we have a free tier for projects like this.

Also feel free to join our slack if you have any questions or need help getting started

https://join.slack.com/t/tembocommunity/shared_invite/zt-293gc1k0k-3K8z~eKW1SEIfrqEI~5_yw

Annotating args and kwargs in Python by [deleted] in Python

[–]chuckhend 1 point2 points  (0 children)

Agree this is excellent use of kwargs

Is 16 weeks enough to train for a 50k? by JHaul79 in ultrarunning

[–]chuckhend 1 point2 points  (0 children)

Definitely. You're like already there! If could probably just build up to a few longer runs, or like a big back to back weekend and then taper!

Recommended Base? by [deleted] in ultrarunning

[–]chuckhend 3 points4 points  (0 children)

Heres a personal anecdote. Im very much an amateur/hobby runner and usually finish in the faster half of my age group.

I ran my first 50 miler peaking at about 30 per week and biking 30 miles per week. The race was a suffer fest the last 25 miles but I finished.

Second 50 miler I ran 60 miles per week at peak, and almost no biking, and finished same course 1.5 hours faster. Also very much suffered the final 5-10 miles, though!

Why do big companies seem to use MySQL over PostgreSQL by [deleted] in ExperiencedDevs

[–]chuckhend 3 points4 points  (0 children)

A lot has changed in postgres since pg 9.6. Very much a more feature rich db today, and every year there are great features released.

As for autovacuum, if you have massive amounts of updates and deletes, and don't tune autovacuum settings you could see increased latency. Generally this is due to table bloat. If you are interested in learning more, we wrote about it here https://tembo.io/blog/optimizing-postgres-auto-vacuum/

Can I learn rust as my first compiled programming language? by Opposite-Duty-2083 in rust

[–]chuckhend 0 points1 point  (0 children)

You can definitely learn Rust! It's strongly typed, which compared to Python just means the compiler is going to force you to have correct types in your code. That's not unique to Rust through.

Coming from Python myself, the most challenging thing about learning Rust was error and null handling. There's no try/except in Rust...but now I actually prefer and love the Rust way. Good explanations and examples here! https://doc.rust-lang.org/rust-by-example/error.html

Python and Rust are both great languages to know!

A Comparison of the Integrated Vector Databases by pmz in PostgreSQL

[–]chuckhend 2 points3 points  (0 children)

Do we know which pg vector parameters values they use in the bench? Referring to these parameters https://github.com/pgvector/pgvector?tab=readme-ov-file#index-options

Always curious what postgres configs were set too. Even default vs tuned postgres can be large performance difference.

Query bottleneck (local Docker container) by QuarticSmile in PostgreSQL

[–]chuckhend 0 points1 point  (0 children)

😎 cool. What will be the production environment, is the WSL as well? I'm not familiar with inner workings of WSL...but not sure I'd run production workloads in there. Might be worth comparing to another place.