I've been taking prescription meds for ~2 years to treat #RLS. I usually sleep well now. Talk to your physician about any sleep issues. They might find that a treatable condition is interfering with your sleep & can treat it. More info: https://www.mayoclinic.org/diseases-conditions/restless-legs-syndrome/symptoms-causes/syc-20377168. (2/2)
Restless legs syndrome - Symptoms and causes

Mayo Clinic
Don't feel rested after #sleeping at night? In menopause, my sleep got worse. I found out that I have #restless #legs #syndrome#RLS, or #Willis-Ekbom disease). It's a neurological condition that can run in families. It might be caused by an imbalance of the brain chemical dopamine. (1/2)

🚀 New blog post + django-rls-tenants 1.1.0 is out!
TL;DR: PostgreSQL RLS policies can't use your indexes because current_setting() isn't leakproof. The query planner falls back to sequential scans and applies tenant filtering row-by-row. On large tables, this hurts.

v1.1 fixes this by adding automatic ORM-level WHERE tenant_id = X alongside RLS - so Postgres uses your composite indexes for the fast path while RLS still enforces isolation as a safety net.

Also in this release:
→ select_related() now propagates tenant filters across joins
→ threading.local replaced with contextvars (ASGI-safe)
→ Superuser detection at startup (RLS is silently bypassed otherwise!)
→ Better exception handling in middleware
→ CASE WHEN policy rewrite for cleaner evaluation
Full write-up: https://dev.to/dvoraj75/postgresql-rls-is-fail-closed-but-is-it-fast-making-django-rls-tenants-index-friendly-2j18
GitHub: https://github.com/dvoraj75/django-rls-tenants
#Django #PostgreSQL #Python #MultiTenancy #RLS #OpenSource

PostgreSQL RLS Is Fail-Closed, But Is It Fast? Making django-rls-tenants Index-Friendly

RLS gives you database-enforced tenant isolation. But PostgreSQL's query planner can't push RLS policies into index scans. Here's how django-rls-tenants 1.1 fixes that.

DEV Community

🚀 Day 1 on django-rls-tenants — bringing true PostgreSQL Row-Level Security to Django multitenancy!

Instead of separate schemas or filtered querysets, this library leverages native RLS policies at the DB level to isolate tenant data automatically.

✅ Pros:
• True DB-level isolation — tenants can't bleed into each other
• Transparent to Django ORM — no custom managers needed
• Leaner than schema-per-tenant approaches
• Scales well for high tenant counts
• Security enforced even outside the app layer

❌ Cons:
• PostgreSQL-only (no MySQL/SQLite support)
• RLS policies add complexity to migrations
• Debugging cross-tenant issues can be tricky
• Superuser connections bypass RLS — needs care
• Less community tooling than shared-schema approaches

Still very early, but the foundations are solid. Would love feedback from anyone who's tackled multitenancy in Django before! 🐘🐍

#Django #PostgreSQL #Python #Multitenancy #RLS #RowLevelSecurity #OpenSource #WebDev #SaaS #DjangoORM #DevLife

#1. Speak out against injustice #2. Reject hierarchical hardwiring #3. Seek tensions and embrace healthy conflict #4. Value individuality and belonging #5. Purpose above profit #RadicalLeftScum #ScumIsPunk #UATE #RLS 🤘❤️🤘

RE: https://bsky.app/profile/did:plc:rw3lu6fpez3h3t6hyfbct6xx/post/3mgmuqdxgss2y

Закурсорить мечту. Часть 2: Технологический стек

Эта статья — 2я часть серии о создании реальных веб-сервисов с помощью ИИ-инструментов, таких как Cursor. На первый взгляд, выбор стека может казаться чисто техническим решением. Но когда вы создаёте ПО с помощью Курсора, стек фактически становится частью инструкции, которую вы даёте ИИ . Если вы не определите его заранее, ИИ будет импровизировать. Не хочу даже думать, к чему это приведет.

https://habr.com/ru/articles/1007652/

#cursor #supabase #vercel #flyio #vibecoding #vibecoding #embeddings #rls

Закурсорить мечту. Часть 2: Технологический стек

Эта статья — 2я часть серии о создании реальных веб-сервисов с помощью ИИ-инструментов, таких как Cursor. Первая часть будет полезна, если вы не разбираетесь в том, что такое frontend и backend, базы...

Хабр

Für die neue Ausgabe der Contraste habe ich den Sammelband Wozu noch kritische Wissenschaft (VSA Verlag) rezensiert.

Mehr Informationen: https://www.contraste.org.

#contraste #wissenschaft #rls #rosaluxemburgstiftung #vsa