Tutorials Search / Backend integrations / Scan your backend with Advisors
πŸ“ Written ● Beginner Updated 2026-06-02

How do I find security & performance issues in my backend?

TL;DR: In the console (lingcode.dev/backends β†’ Database) click Advisors. It scans your backend's schema and flags security issues (a table with row-level security off, policies that exist while RLS is disabled, functions with a mutable search_path) and performance ones (no primary key, duplicate indexes, multiple permissive policies, unindexed foreign keys) β€” each with a fix. Re-run after changes; the green "no issues" state means the dangerous stuff is handled.

The scariest bugs in a backend aren't loud β€” they're the table you forgot to put row-level security on, quietly readable by anyone with the public key. Advisors is a one-click scan that surfaces exactly that class of problem (plus the slow-query kind) before a user finds it for you. Think of it as a linter for your database.

This applies to a managed backend. Advisors reads your schema (it never changes anything) and reports findings grouped by Security and Performance, ordered worst-first. It pairs with the RLS policy templates: templates help you apply safe access rules; Advisors tells you where you forgot to.

What it checks

Security

Performance

Run it, fix it, re-run

  1. Open lingcode.dev/backends β†’ Database β†’ Advisors. Read the findings worst-first.
  2. Fix the errors first β€” usually "enable RLS + add a policy." You can apply a policy from the templates, or ask the agent ("turn on RLS for notes so each user only sees their own rows").
  3. Click Advisors again β€” a resolved issue drops off the list. The goal is no errors; warnings and info are judgment calls.

The one that matters most

If you read nothing else: an RLS-disabled table on a backend reachable by a public anon key is a data leak waiting to happen. Advisors flags it as an error for a reason β€” fix those before you ship. The managed backend gives every project RLS-capable Postgres; Advisors makes sure you actually used it.

What's next