TGViewer
Channel Public Channel
There will be no singularity

There will be no singularity

@nosingularity

Smartface, technologies and decay
@antonrevyako
Subscribers
1.96K
Photos
258
Videos
15
Links
1K

Showing posts older than #1308 · Back to latest

Older Posts 20 shown
Post #1307 2.86K
Friendly reminder:
The UNION and UNION ALL operators may order the rows in the final result set in an unspecified order. For example, it may place rows from the second result set before/after the row from the first result set.


I have encountered a situation where a query with UNION and UNION ALL resulted in a stable different row order...

UNION is often used for something like this:

SELECT * FROM (
SELECT id FROM t WHERE name = 'user_input'
UNION
SELECT id FROM t WHERE name = 'default_value'
)
LIMIT 1


It is important that if a record with 'user_input' is found, it should be the first record in the result.
In such a case, add an ORDER BY of this form to the query:

ORDER BY name = 'default_value'
  • 👍 3
  • 🤔 3
  • 🤨 1
Post #1306 2.36K
  • 🤩 21
  • 👍 1
Post #1299 2.44K
  • 😁 33
  • 🔥 11
Post #1297 7.66K
Post #1296 2.28K

Forwarded from DataEng

Ребята из Supabase не перестают радовать! 😲

На днях в сети появился новый сервис от Supabase: https://postgres.new. Это data modeling сервис на базе Postgres со встроенным AI ассистентом. Запуск Postgres прямо в браузере возможен благодаря https://pglite.dev/. Это облегчённая версия Postgres, упакованная в WASM.

Целевая аудитория сервиса:

— аналитики данных
— дата инженеры
— студенты, изучающие реляционные базы данных, в частности PostgreSQL
— разработчики, разрабатывающие схемы таблиц

Пример работы с сервисом смотрите на Ютубе.
postgres.new postgres.new — In-Browser PostgreSQL Spin up PostgreSQL databases in your browser with PGlite
  • 👍 10
Post #1295 2.39K
Post #1291 2.61K
Post #1288 2.93K

Forwarded from Roman Agabekov

Hey friends,

We built a database performance management tool Releem that helps engineers to keep database servers fast, secure and reliable.

Why Releem:
- Automatic performance tuning
- Fast slow query identification
- Monitoring & tuning in one place
- MySQL / MariaDB & AWS RDS.
- Open-source agent

After few years development we launched on Product Hunt.

If you interested in such solutions, have some questions or feedback appreciate your support❤️ here https://www.producthunt.com/posts/releem
Product Hunt Releem: Database performance management tool | Product Hunt Releem makes managing and tuning database servers easy. ⚙️ Automatic performance tuning 🐇 Fast slow query identification ✔️ Monitoring tuning in one place 🔀 MySQL / MariaDB & AWS RDS 🌐 Open-source agent
  • 👍 3
Post #1287 2.07K
A friend of mine is on a product hunt today!
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →