Hacker Newsnew | past | comments | ask | show | jobs | submit | azophy_2's commentslogin

Just curious as someone with limited experience on this. Whats wrong with it? decimal is consistent & predictable (compared than float), so it shouldn't be that big of a deal right? CMIIW


Yeah, not a big deal but completely useless nonetheless as you would never really query your table for just the one decimal column (eg the price) but a couple more (eg the category and the price) so you'd have a multi-column index on those columns. The index on just the price column never gets used.


What if you wanted to select "top 100 most expensive products" or number of products between $0.01 and $10, $10.01 and $100, $100.01 and $1000? Sure you could do a full table scan on your products table on both queries but an index on price would speed both queries up a lot if you have a lot of products. Of course you have to determine if the index would be used enough to make up for the extra time on index update when the price changes or products are added or deleted.


Cheap solution, sure, add an index. But you're asking an OLAP question question of an OLTP system. Questions like that are best asked at least of an out-of-production read replica or better an analytics db.


I don't really understand this - what is an out of production read replica? Why wouldn't it just go to a production read replica?

And what is an "analytics db" in this context?


In general just avoiding mixed types of load. Predictable, audited application queries in a user request shouldn’t be mixed with potentially extremely expensive long running analytics queries. Different replica sets isolates customers from potential performance impacts caused by data analytics.


You stream CDC events to have a 1 to 1 read replica in something like Snowflake/Databricks where you can run all kinds of OLAP workflows on this analytics db replica.


Oh, sure, but wouldn't the whole website be served out of a read-friendly database? Why would you have a separate "analytics" database to the main database(s) driving the site?


In the real world, people want cheap solutions and they want it yesterday.


could you explain more? im always under impression that chinese scam/fraud are rare. what keywords should i search for?


Most scams in China are a mix of romance and investment scams.

Since WeChat allows accounts created outside of China, it's these accounts that are used. And it's why there are times it's a pain to create a WeChat account outside of China.

The financial transactions all take place outside of WeChat.


Is there any comprehensive guide in building observability stack using otel, clickhouse, and grafana? I think this is a solid stack for logging & tracing, but I've been looking into it but haven't found any authoritative reference for this particular stack (unlike ELK & LGTM stack)


wow this is great! is it still under development? because I felt that it still lacking more feature (search/filter/subscribe/etc)


Yes this is my nights and weekends while having many other commitments. I’m working on all of that


  Location: Indonesia
  Remote: Yes
  Willing to relocate: No
  Technologies: Go, Python, Typescript/Javascript, PHP, PostgreSQL, MySQL, Redis, Docker, Kubernetes, Linux, GraphQL, RestAPI, GCP, AWS, React, Vue
  Résumé: https://s.id/resume-abdurrahman
  Email: abdurrahman dot adianto dot id
Backend engineer with 8+ years of experience. Worked with Go, Python, Typescript, and PHP. Have experience with DevOps & Software Architecture roles. Currently looking for remote work outside of Indonesia


havent used it yet, but Github's readme contain "feature" section that lists "YubiKey and Duo support"


this is a very detailed review. thanks for sharing this


actually both projects looks incredibly similar. perhaps both using the same UI framework or something?


I'm curious about other's experience with LDAP's supposed succesor: SCIM (http://scim.cloud). based on REST, it does sound simpler to implement & integrate compared to LDAP. but is it actually better compared to LDAP?


SCIM + Oath/SAML is pretty solid (SCIM doesn't handle authentication just provisioning, de-provisioning, and updates).

It flips the script on LDAP as well, instead of the application calling in to the directory, the directory/sync service calls into the application which has some positive security implications.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: