Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Без ОРМ

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Без ОРМ

Avatar for Deep Refactoring

Deep Refactoring

October 26, 2017
Tweet

More Decks by Deep Refactoring

Other Decks in Education

Transcript

  1. Википедия is a technique for converting data between incompatible type

    systems using object-oriented programming languages.
  2. В реальности — абстракции (чаще всего) зло — база меняется

    редко (и болезненно) — коллекции > объекты
  3. Примерная сложность SEL/INS/UPD/DEL + (на этом пора заканчивать) INNER/LEFT JOIN

    ++ WITH RECURSIVE ++++ JSON(b) ++++++++ GIS ++++++++++++++ FULLTEXT SEARCH ++++++++++++++++++++++++++++ ...
  4. Боязнь raw SQL — доменный язык (как HTML, CSS) —

    ООП-код растет — неэффективная работа с БД
  5. Вам не нужны объекты — опасные property — нужны удобные

    структуры — и функции для работы с ними — Clojure, Go, Rust
  6. Наш проект — PostgreSQL, JDBC/Clojure — 70 таблиц — до

    15 join-ов в запросах — GIS, JSONb — рекурсивные запросы