1 request = n queries = n objects per query = borrows one connection from shared pool
#ruby #performance #devlife
1 request = n queries = n objects per query = borrows one connection from shared pool
#ruby #performance #devlife
every query pays network latency (worse across regions); CPU/IO spikes = rails framework overhead + db parse/plan/execute per query; db connection is expensive and hold it is bad for concurrent envs
we really want to talk little to db!
#performance #ruby #devlife
every query pays network latency (worse across regions); CPU/IO spikes = rails framework overhead + db parse/plan/execute per query; db connection is expensive and hold it is bad for concurrent envs
we really want to talk little to db!
#performance #ruby #devlife
technique to load associations; in advance in the same query; into RAM
#devlife #performance #ruby
technique to load associations; in advance in the same query; into RAM
#devlife #performance #ruby
when collection access associations; additional query for each collection item; like sql being called inside a loop; we want to talk little to database as possible
#devlife #performance
when collection access associations; additional query for each collection item; like sql being called inside a loop; we want to talk little to database as possible
#devlife #performance
pros: full control (privacy/run anywhere), cheaper, customizable, no vendor lock-in, auditable n innovation multiplier;
cons: complex setup, hardware intensive, fewer out of the box capabilities n you manage security, scale and uptime
#ai #devlife
use tools and knowledge to deliver an end product; impact someone's life and enjoy the ride! ✨
#devlife
use tools and knowledge to deliver an end product; impact someone's life and enjoy the ride! ✨
#devlife
#sketchybar #macos #ui #customization
#sketchybar #macos #ui #customization
www.stefannibrasil.me/posts/notes/...
www.stefannibrasil.me/posts/notes/...
more computation power + more trained data = more performance + new abilities
these explain a lot these days...
#ai #devlife #softwareengineering
more computation power + more trained data = more performance + new abilities
these explain a lot these days...
#ai #devlife #softwareengineering
llms are trained to predict text; they don't check facts against the training data and have no knowledge; training data has gaps, inconsistencies, and underrepresented topics.
there is no intelligence in artificial intelligence 🙃
#ai #devlife #softwareengineering
llms are trained to predict text; they don't check facts against the training data and have no knowledge; training data has gaps, inconsistencies, and underrepresented topics.
there is no intelligence in artificial intelligence 🙃
#ai #devlife #softwareengineering
capabilities: conversational awareness, context switching without retraining and external tool integration. limitations are: hallucination potential, knowledge cutoff dates, complex reasoning challenges and context window constraints
#ai #devlife
#tropicalonrails #rubyonrails
#tropicalonrails #rubyonrails
both works fine, but go for the single; double quotes might trigger "command substitution" on unix-like systems
for example:
```bash
echo "`ls`"
./docs/
./node_modules/
./package-lock.json
./package.json
./pages/
```
#git #devlife
#ruby #gum #charmruby #devlife #nasa
#ruby #gum #charmruby #devlife #nasa
experimental `Ruby::Box` isolation mechanism; new zjit compiler; performance improvements for class instantiation; `Set` and `Path` classes promoted to core classes
#ruby #devlife #softwareengineer
experimental `Ruby::Box` isolation mechanism; new zjit compiler; performance improvements for class instantiation; `Set` and `Path` classes promoted to core classes
#ruby #devlife #softwareengineer
it's like a time travel; rewrites the repo timeline; amend staged files to "previous" commit; previous commit is actually replaced and not modified; commits are immutable
#git #softwareengineer #learninginpublic #devlife
it's like a time travel; rewrites the repo timeline; amend staged files to "previous" commit; previous commit is actually replaced and not modified; commits are immutable
#git #softwareengineer #learninginpublic #devlife
in this post, I’ll show you how to self-host your apps with minimal effort. the possibilities are endless! ✨
check it out: jaggies-weekly.netlify.app/how-to-self-...
#devlife #learninpublic #selfhosting #linux #umbrel
in this post, I’ll show you how to self-host your apps with minimal effort. the possibilities are endless! ✨
check it out: jaggies-weekly.netlify.app/how-to-self-...
#devlife #learninpublic #selfhosting #linux #umbrel
Check it out at: vulgovarios.bandcamp.com/album/modern...
#jungle #cooking #music
Check it out at: vulgovarios.bandcamp.com/album/modern...
#jungle #cooking #music