[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71464EDJ908BQMEDV3PJ0F4":3,"skill-same:01M71464EDJ908BQMEDV3PJ0F4":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M71464EDJ908BQMEDV3PJ0F4","odoo-performance-tuner",null,"Expert guide for diagnosing and fixing Odoo performance issues: slow queries, worker configuration, memory limits, PostgreSQL tuning, and profiling tools.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Fodoo-performance-tuner\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"performance","tuner","odoo performance tuner","odoo","queries","limits","for","worker","self","configuration","expert","safe","guide","profiling","tuning","Tools","postgresql","issues","memory","2026-11-10 10:12:30",false,"---\nname: odoo-performance-tuner\ndescription: \"Expert guide for diagnosing and fixing Odoo performance issues: slow queries, worker configuration, memory limits, PostgreSQL tuning, and profiling tools.\"\nrisk: safe\nsource: \"self\"\n---\n\n# Odoo Performance Tuner\n\n## Overview\n\nThis skill helps diagnose and resolve Odoo performance problems — from slow page loads and database bottlenecks to worker misconfiguration and memory bloat. It covers PostgreSQL query tuning, Odoo worker settings, and built-in profiling tools.\n\n## When to Use This Skill\n\n- Odoo is slow in production (slow page loads, timeouts).\n- Getting `MemoryError` or `Worker timeout` errors in logs.\n- Diagnosing a slow database query using Odoo's profiler.\n- Tuning `odoo.conf` for a specific server spec.\n\n## How It Works\n\n1. **Activate**: Mention `@odoo-performance-tuner` and describe your performance issue.\n2. **Diagnose**: Share relevant log lines or config and receive a root cause analysis.\n3. **Fix**: Get exact configuration changes with explanations.\n\n## Examples\n\n### Example 1: Recommended Worker Configuration\n\n```ini\n# odoo.conf — tuned for a 4-core, 8GB RAM server\n\nworkers = 9                   # (CPU_cores × 2) + 1 — never set to 0 in production\nmax_cron_threads = 2          # background cron jobs; keep ≤ 2 to preserve user-facing capacity\nlimit_memory_soft = 1610612736  # 1.5 GB — worker is recycled gracefully after this\nlimit_memory_hard = 2147483648  # 2.0 GB — worker is killed immediately; prevents OOM crashes\nlimit_time_cpu = 600          # max CPU seconds per request\nlimit_time_real = 1200        # max wall-clock seconds per request\nlimit_request = 8192          # max requests before worker recycles (prevents memory leaks)\n```\n\n### Example 2: Find Slow Queries with PostgreSQL\n\n```sql\n-- Step 1: Enable pg_stat_statements extension (run once as postgres superuser)\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n\n-- Step 2: Also add to postgresql.conf and reload:\n-- shared_preload_libraries = 'pg_stat_statements'\n-- log_min_duration_statement = 1000   -- log queries taking > 1 second\n\n-- Step 3: Find the top 10 slowest average queries\nSELECT\n    LEFT(query, 100) AS query_snippet,\n    round(mean_exec_time::numeric, 2) AS avg_ms,\n    calls,\n    round(total_exec_time::numeric, 2) AS total_ms\nFROM pg_stat_statements\nORDER BY mean_exec_time DESC\nLIMIT 10;\n\n-- Step 4: Check for missing indexes causing full table scans\nSELECT schemaname, tablename, attname, n_distinct, correlation\nFROM pg_stats\nWHERE tablename = 'sale_order_line'\n  AND correlation \u003C 0.5   -- low correlation = poor index efficiency\nORDER BY n_distinct DESC;\n```\n\n### Example 3: Use Odoo's Built-In Profiler\n\n```text\nPrerequisites: Run Odoo with ?debug=1 in the URL to enable debug mode.\n\nMenu: Settings → Technical → Profiling\n\nSteps:\n  1. Click \"Enable Profiling\" — set a duration (e.g., 60 seconds)\n  2. Navigate to and reproduce the slow action\n  3. Return to Settings → Technical → Profiling → View Results\n\nWhat to look for:\n  - Total SQL queries > 100 on a single page  → N+1 query problem\n  - Single queries taking > 100ms             → missing DB index\n  - Same query repeated many times            → missing cache, use @ormcache\n  - Python time high but SQL low             → compute field inefficiency\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `mapped()`, `filtered()`, and `sorted()` on in-memory recordsets — they don't trigger additional SQL.\n- ✅ **Do:** Add PostgreSQL B-tree indexes on columns frequently used in domain filters (`partner_id`, `state`, `date_order`).\n- ✅ **Do:** Enable Odoo's HTTP caching for static assets and put a CDN (Cloudflare, AWS CloudFront) in front of the website.\n- ✅ **Do:** Use `@tools.ormcache` decorator on methods pulled repeatedly with the same arguments.\n- ❌ **Don't:** Set `workers = 0` in production — single-threaded mode serializes all requests and blocks all users on any slow operation.\n- ❌ **Don't:** Ignore `limit_memory_soft` — workers exceeding it are recycled between requests; without the limit they grow unbounded and crash.\n- ❌ **Don't:** Directly manipulate `prefetch_ids` on recordsets — rely on Odoo's automatic batch prefetching, which activates by default.\n\n## Limitations\n\n- PostgreSQL tuning (`shared_buffers`, `work_mem`, `effective_cache_size`) is highly server-specific and not covered in depth here — use [PGTune](https:\u002F\u002Fpgtune.leopard.in.ua\u002F) as a starting baseline.\n- The built-in Odoo profiler only captures **Python + SQL** traces; JavaScript rendering performance requires browser DevTools.\n- **Odoo.sh** managed hosting restricts direct PostgreSQL and `odoo.conf` access — some tuning options are unavailable.\n- Does not cover **Redis-based session store** or **Celery task queue** optimizations, which are advanced patterns for very high-traffic instances.\n","# Odoo Performance Tuner\n\n## Overview\n\nThis skill helps diagnose and resolve Odoo performance problems — from slow page loads and database bottlenecks to worker misconfiguration and memory bloat. It covers PostgreSQL query tuning, Odoo worker settings, and built-in profiling tools.\n\n## When to Use This Skill\n\n- Odoo is slow in production (slow page loads, timeouts).\n- Getting `MemoryError` or `Worker timeout` errors in logs.\n- Diagnosing a slow database query using Odoo's profiler.\n- Tuning `odoo.conf` for a specific server spec.\n\n## How It Works\n\n1. **Activate**: Mention `@odoo-performance-tuner` and describe your performance issue.\n2. **Diagnose**: Share relevant log lines or config and receive a root cause analysis.\n3. **Fix**: Get exact configuration changes with explanations.\n\n## Examples\n\n### Example 1: Recommended Worker Configuration\n\n```ini\n# odoo.conf — tuned for a 4-core, 8GB RAM server\n\nworkers = 9                   # (CPU_cores × 2) + 1 — never set to 0 in production\nmax_cron_threads = 2          # background cron jobs; keep ≤ 2 to preserve user-facing capacity\nlimit_memory_soft = 1610612736  # 1.5 GB — worker is recycled gracefully after this\nlimit_memory_hard = 2147483648  # 2.0 GB — worker is killed immediately; prevents OOM crashes\nlimit_time_cpu = 600          # max CPU seconds per request\nlimit_time_real = 1200        # max wall-clock seconds per request\nlimit_request = 8192          # max requests before worker recycles (prevents memory leaks)\n```\n\n### Example 2: Find Slow Queries with PostgreSQL\n\n```sql\n-- Step 1: Enable pg_stat_statements extension (run once as postgres superuser)\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n\n-- Step 2: Also add to postgresql.conf and reload:\n-- shared_preload_libraries = 'pg_stat_statements'\n-- log_min_duration_statement = 1000   -- log queries taking > 1 second\n\n-- Step 3: Find the top 10 slowest average queries\nSELECT\n    LEFT(query, 100) AS query_snippet,\n    round(mean_exec_time::numeric, 2) AS avg_ms,\n    calls,\n    round(total_exec_time::numeric, 2) AS total_ms\nFROM pg_stat_statements\nORDER BY mean_exec_time DESC\nLIMIT 10;\n\n-- Step 4: Check for missing indexes causing full table scans\nSELECT schemaname, tablename, attname, n_distinct, correlation\nFROM pg_stats\nWHERE tablename = 'sale_order_line'\n  AND correlation \u003C 0.5   -- low correlation = poor index efficiency\nORDER BY n_distinct DESC;\n```\n\n### Example 3: Use Odoo's Built-In Profiler\n\n```text\nPrerequisites: Run Odoo with ?debug=1 in the URL to enable debug mode.\n\nMenu: Settings → Technical → Profiling\n\nSteps:\n  1. Click \"Enable Profiling\" — set a duration (e.g., 60 seconds)\n  2. Navigate to and reproduce the slow action\n  3. Return to Settings → Technical → Profiling → View Results\n\nWhat to look for:\n  - Total SQL queries > 100 on a single page  → N+1 query problem\n  - Single queries taking > 100ms             → missing DB index\n  - Same query repeated many times            → missing cache, use @ormcache\n  - Python time high but SQL low             → compute field inefficiency\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `mapped()`, `filtered()`, and `sorted()` on in-memory recordsets — they don't trigger additional SQL.\n- ✅ **Do:** Add PostgreSQL B-tree indexes on columns frequently used in domain filters (`partner_id`, `state`, `date_order`).\n- ✅ **Do:** Enable Odoo's HTTP caching for static assets and put a CDN (Cloudflare, AWS CloudFront) in front of the website.\n- ✅ **Do:** Use `@tools.ormcache` decorator on methods pulled repeatedly with the same arguments.\n- ❌ **Don't:** Set `workers = 0` in production — single-threaded mode serializes all requests and blocks all users on any slow operation.\n- ❌ **Don't:** Ignore `limit_memory_soft` — workers exceeding it are recycled between requests; without the limit they grow unbounded and crash.\n- ❌ **Don't:** Directly manipulate `prefetch_ids` on recordsets — rely on Odoo's automatic batch prefetching, which activates by default.\n\n## Limitations\n\n- PostgreSQL tuning (`shared_buffers`, `work_mem`, `effective_cache_size`) is highly server-specific and not covered in depth here — use [PGTune](https:\u002F\u002Fpgtune.leopard.in.ua\u002F) as a starting baseline.\n- The built-in Odoo profiler only captures **Python + SQL** traces; JavaScript rendering performance requires browser DevTools.\n- **Odoo.sh** managed hosting restricts direct PostgreSQL and `odoo.conf` access — some tuning options are unavailable.\n- Does not cover **Redis-based session store** or **Celery task queue** optimizations, which are advanced patterns for very high-traffic instances.\n",{"name":5,"risk":30,"source":27,"description":7},"main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcopilot\u002Fodoo-performance-tuner","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill odoo-performance-tuner",{"tool":55,"command":56},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill odoo-performance-tuner",{"tool":58,"command":59},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill odoo-performance-tuner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Fodoo-performance-tuner\u002FSKILL.md",true,[],[64,74,81,89,95,103],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":73},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":73},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":90,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":73},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":73},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":73},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]