Readit News logoReadit News
rossmohax commented on When should you use the IN instead of the OR operator in Postgres?   ottertune.com/blog/query-... · Posted by u/angry__panda
SigmundA · 2 years ago
>every query has to be planned

I thought PG planned every query anyway, it does not do plan caching.

rossmohax · 2 years ago
It does, but AFAIk only for prepapred queries and cache is local to the backend serving query. See `plan_cache_mode` param.
rossmohax commented on When should you use the IN instead of the OR operator in Postgres?   ottertune.com/blog/query-... · Posted by u/angry__panda
rossmohax · 2 years ago
Please use neither. Reason is as number of lookups varies, you'll have to template query as a string adding either values to IN list or `OR` conditions. Not only it causes excessive string concatenation on your app side, these queries are also seen as distinct queries which has following drawbacks:

- every query has to be planned

- your DB driver can't prepare query as they are all different

- collecting per query stats becomes nightmare if number of arguments per query varies in wide range. metrics cardinality is a problem.

Correct way to handle it is pass all args as single parameter of type array and use `= ANY($1)` or if there are multiple columns build a virtual table and join:

  SELECT a,b FROM table 
  NATURAL JOIN ROWS FROM (
    unnest($1::type_of_a[]),
    unnest($2::type_of_b[])
  ) t(a,b)

rossmohax commented on Don't Take VC Funding – It Will Destroy Your Company   eidel.io/2023/07/09/vc-fu... · Posted by u/olieidel
rossmohax · 2 years ago
There was a company I can't recall its name, but they took VC funding for one round, retained voting control, built successfull business and then refused to go for another VC round. VC still owns company, but can't exit and founders are happy with the way things are.
rossmohax commented on ZFS 2.2.0 (RC): Block Cloning merged   github.com/openzfs/zfs/pu... · Posted by u/turrini
rossmohax · 2 years ago
Does ZFS or any other FS offer special operations which DB engine like RocksDB, SQLite or PostgreSQL could benefit from if they decided to target that FS specifically?
rossmohax commented on Tesla Gives New UK Owners a ‘Reacher’ Stick to Deal with Left-Hand Drive Cars   carscoops.com/2023/06/tes... · Posted by u/Tomte
rossmohax · 2 years ago
Life would be easier if UK switched driving sides.
rossmohax commented on Everything that uses configuration files should report where they're located   utcc.utoronto.ca/~cks/spa... · Posted by u/ingve
paveworld · 2 years ago
just try using the unix command lsof

if you know the PID aka Process ID for the application yr running try lsof -p PID_NUM_HERE

it will give you a list of every open file your application is using along with it's full path

finally, if that gave you too many lines try lsof -p PID_NUM_HERE | grep -E 'txt|properties|config'

I know you wanted the files listed it in a help file however this will work 100% of the time

Best, Stephen

rossmohax · 2 years ago
this will work 0% of the time if app closes config after reading
rossmohax commented on System Initiative: Second Wave DevOps   systeminit.com/blog-secon... · Posted by u/kelp
oofnik · 2 years ago
I'm happy to see someone really trying to color outside the lines with deployment tooling. I think we've fallen into a number of paradigms for system operations that we know are kind of bad, but we tell ourselves about how much more awful it used to be to numb the pain. That sort of attitude is the real killer of innovation.

I say bring it on; more variance and more disruption in this space as people try new approaches might be what we need to get us out of the rut we've been stuck in for too long. No idea if it will work, but good luck to Adam and his team.

https://youtube.com/watch?v=5lPa2U239C4

rossmohax · 2 years ago
This talk is must see to understand what SI tries to achieve.

Deleted Comment

rossmohax commented on System Initiative: Second Wave DevOps   systeminit.com/blog-secon... · Posted by u/kelp
rossmohax · 2 years ago
I like the appeal of model being bidirectional. Also modelling sequence of actions is really not solved problem in Terraform & Pulumi: canary change, check metrics, rollout to the rest of the region, check metrics, then all regions, if they solved it all while being "declarative" and high level it can be the next tool of choice for me.

I am not worried about UI representation of the model like many comments, it is not the main point of this project as I understand. UI just that - a representation, same relationships might as well be coded in HCL or the like of it.

rossmohax commented on PostgreSQL reconsiders its process-based model   lwn.net/SubscriberLink/93... · Posted by u/todsacerdoti
dialogbox · 2 years ago
I'm not sure what you mean by OS. If you mean a whole new kernel, it will take decades. They can support only small number of HW. If you mean a specialized linux distro, many companies does that already.

I don't know how that can make it easier the process based / thread based problem.

rossmohax · 2 years ago
This project could borrow a lot from unikernels. If they mandate running it as a VM, there is no HW to support.

u/rossmohax

KarmaCake day1009December 17, 2015
About
Email: u947d2ybo@mozmail.com
View Original