News for hackers. Stuff that matters.
Re:Notes on OpenAI's new o1 chain-of-thought models by lupire on Friday September 13, 2024 @03:26PM (#41534310)
Optimizing a query is certainly something the machine (not necessarily the LLM part) can do better than the human, for 99.9% of situations and people.

PostgreSQL developers are oposed to query execution hints, because if a human knows a better way to execute a query, the devs want to put that knowledge into the planner.

Re:Notes on OpenAI's new o1 chain-of-thought models by RaftPeople on Saturday September 14, 2024 @12:18PM (#41540751)
Tangent:

> PostgreSQL developers are oposed to query execution hints, because if a human knows a better way to execute a query, the devs want to put that knowledge into the planner.

This thinking represents a fundamental misunderstanding of the nature of the problem (query plan optimization).

Query plan optimization is a combinatorial problem combined with partial information (e.g. about things like cardinality) that tends to produce worse results as complexity (and search space) increases due to limited search time.

Avoiding hints won't solve this problem because it's not a solvable problem any more than the traveling salesperson is a solvable problem.