Skip to main content

Command menu

Jump to a page or search the catalog

AI Tools & Scripts

Slow Query Report: Why Your SQL Is Slow, from Its Execution Plan

For developers: paste a slow PostgreSQL or MySQL query and its execution plan, and get a report with the diagnosis, each point citing its plan or query line, a rewrite, a suggested index with its costs, and how to confirm on a copy. No database connection. تقرير استعلام SQL بطيء، وكل نقطة بسطرها.

$6.00

What you get: 1 file · 112.36 KB · ZIP

See purchase options

Product description

English

For developers with a slow PostgreSQL or MySQL query and its execution plan in hand.

Paste the query and its plan into your agent. You get back a report that says why it is slow, with every point citing its line in the plan or the query, plus a rewrite, a suggested index with its costs, and how to confirm the result on a copy.

What you get each run

  • query-report.md: the engine and version, what the query should return, the diagnosis, the rewrite and what could change in its results, the suggested index, when the index may not help, how to confirm, and questions for the team.
  • query-report.html: the same as one printable page, with plan excerpts beside the points they support.
  • plan.json and sql.json: what the readers found in the plan and the query, every fact with its line.

Read from what you paste

Bundled Python scripts (standard library, read-only, no network calls) read PostgreSQL EXPLAIN (ANALYZE, BUFFERS) as text or JSON and MySQL 8 EXPLAIN ANALYZE (tree) or EXPLAIN FORMAT=JSON, plus your CREATE TABLE and CREATE INDEX statements if you give them. They find full scans, rows thrown away by filters, row estimates that were far off, sorts that spill to disk, hash batches, repeated loops and the steps that take the most time. The query reader marks functions on filtered columns, leading-wildcard LIKE, OR across columns, NOT IN with a subquery and large OFFSET as candidates.

It never touches your database

Nothing connects to a database. The report is written from what you pasted, and every change it suggests is for a copy or staging database first.

Suggestions with their costs

The rewrite says what could change in its results: NULLs, duplicates, order. The suggested index comes with its costs said plainly: extra writes, disk size, build time and locking (CONCURRENTLY on PostgreSQL, the online options on MySQL). The confirm steps run the new plan in the same form and check that both queries return the same rows.

Checked, not just written

A checker confirms every cited plan and query line exists, index columns exist in the schema you gave, the index does not repeat an existing one, the confirm section checks that results are equal, and no data-changing statement appears. The agent fixes and checks again until no FIX is left.

Honest about its limits

The checker cannot tell whether the query will be faster: only the new plan on a copy shows that. Heuristic points are labelled as such. The engine and version are asked for, because plan formats differ.

Arabic

The report can be written in Arabic with a right-to-left page; SQL, plan excerpts and names stay as they are.

In the download: SKILL.md, the scripts, references (the report format, the plan formats each reader accepts, the query reader's limits, index costs and how to confirm), and complete examples so you can see the output before you buy: a customer orders screen on PostgreSQL 16 in English, and a sales report query on MySQL 8 in English and Arabic.

بالعربي

للمبرمجين الذين بين أيديهم استعلام PostgreSQL أو MySQL بطيء وخطة تنفيذه.

الصق الاستعلام وخطته لوكيلك. تستلم تقريرًا يقول لماذا هو بطيء، وكل نقطة تذكر سطرها في الخطة أو في الاستعلام، مع إعادة كتابة، وفهرس مقترح بتكاليفه، وطريقة التأكد من النتيجة على نسخة.

ماذا تستلم في كل مرة

  • ملف query-report.md: المحرك والإصدار، وما يجب أن يعيده الاستعلام، والتشخيص، وإعادة الكتابة وما قد يتغير في نتائجها، والفهرس المقترح، ومتى قد لا يفيد، وكيف تتأكد، وأسئلة للفريق.
  • صفحة query-report.html: الشيء نفسه كصفحة واحدة قابلة للطباعة، ومقتطفات الخطة بجانب النقاط التي تسندها.
  • ملفا plan.json وsql.json: ما وجده القارئان في الخطة والاستعلام، وكل معلومة مع سطرها.

من الذي تلصقه أنت

سكربتات بايثون مرفقة (تقرأ فقط، بلا اتصال بالشبكة) تقرأ خطط PostgreSQL من EXPLAIN (ANALYZE, BUFFERS) نصًا أو JSON، وخطط MySQL 8 من EXPLAIN ANALYZE أو EXPLAIN FORMAT=JSON، وتعريفات الجداول والفهارس إن أعطيتها. تجد المسح الكامل، والصفوف التي يرميها الفلتر، والتقديرات البعيدة عن الواقع، والفرز الذي ينزل إلى القرص، والحلقات المتكررة، والخطوات الأكثر استهلاكًا للوقت.

لا يلمس قاعدة بياناتك

لا شيء يتصل بقاعدة البيانات. التقرير مكتوب مما لصقته، وكل تغيير مقترح يُجرَّب على نسخة أو قاعدة تجريبية أولًا.

اقتراحات مع تكاليفها

إعادة الكتابة تذكر ما قد يتغير في النتائج: القيم الفارغة، والتكرار، والترتيب. والفهرس المقترح معه تكاليفه بوضوح: كتابات إضافية، وحجم على القرص، ووقت البناء والقفل. وخطوات التأكد تشغّل الخطة الجديدة بالشكل نفسه وتتأكد أن الاستعلامين يعيدان الصفوف نفسها.

مدقَّق، لا مكتوب فقط

أداة فحص تتأكد أن كل سطر مذكور من الخطة والاستعلام موجود، وأعمدة الفهرس موجودة في الجداول المعطاة، والفهرس لا يكرر فهرسًا موجودًا، وقسم التأكد يقارن النتائج، ولا توجد جملة تغيّر البيانات. يصلح الوكيل ويعيد الفحص حتى لا يبقى أي FIX.

صادق في حدوده

الأداة لا تعرف هل سيصير الاستعلام أسرع: الخطة الجديدة على نسخة هي التي تبيّن ذلك. والنقاط المبنية على قراءة عامة مكتوب أنها كذلك.

العربية

يُكتب التقرير بالعربي في صفحة من اليمين إلى اليسار، ويبقى SQL ومقتطفات الخطة والأسماء كما هي.

داخل الملف: ملف SKILL.md، والسكربتات، والمراجع، وأمثلة كاملة لترى النتيجة قبل الشراء: شاشة طلبات عملاء على PostgreSQL 16 بالإنجليزي، واستعلام تقرير مبيعات على MySQL 8 بالإنجليزي والعربي.

Questions / أسئلة

Does it connect to my database? / هل يتصل بقاعدة بياناتي؟

No. It reads the query and plan you paste. Every change it suggests is for a copy or staging database first. لا، يقرأ ما تلصقه فقط.

Which databases and plan formats? / أي قواعد بيانات وأي صيغ خطط؟

PostgreSQL 12+ EXPLAIN (ANALYZE, BUFFERS) as text or JSON, and MySQL 8 EXPLAIN ANALYZE (tree) or EXPLAIN FORMAT=JSON. Other forms are refused with a clear message. PostgreSQL 12+ وMySQL 8 بصيغ محددة.

Will my query be faster? / هل سيصير استعلامي أسرع؟

The report says why it is slow and what to try. Only the new plan on a copy shows whether it is faster, and the report gives the exact steps. التقرير يقول السبب، والخطة الجديدة على نسخة هي الحكم.

Can the rewrite change my results? / هل تغيّر إعادة الكتابة نتائجي؟

The report says what could change (NULLs, duplicates, order) and gives a query that checks both versions return the same rows. التقرير يذكر ما قد يتغير ويعطي استعلامًا للمقارنة.

What does an index cost? / ماذا يكلف الفهرس؟

Extra writes, disk size, build time and locking, said plainly, with CONCURRENTLY on PostgreSQL and the online options on MySQL. كتابات إضافية وحجم ووقت بناء وقفل، بوضوح.

Do I need to share real data? / هل أحتاج مشاركة بيانات حقيقية؟

No. Replace values in the plan before pasting; the plan's shape stays the same. لا، استبدل القيم قبل اللصق وتبقى الخطة كما هي.

Can the report be in Arabic? / هل يكون التقرير بالعربي؟

Yes, as an added option: a right-to-left page; SQL and plan excerpts stay as they are. نعم، وSQL يبقى كما هو.

What you get

1 file · 112.36 KB

  • slow-query-report-1.0.0.zipZIP · 112.36 KB
LicenseCommercial use allowed
Package checkPassed

Getly opened the uploaded files and found nothing that would stop them opening. It is not a virus scan or a quality rating.

PublishedNov 13, 2026
File size112.36 KB
File formatZIP
Versionv1.0

Tags

sqlpostgresqlmysqlquery optimizationexplain analyzedatabase indexperformancearabicai agent skill
R
RR HH

Frequently asked questions

Do I get access instantly?

Yes. This is a digital product - you can download it right after checkout, straight from your library.

Can I use it for commercial projects?

Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.

What's your refund policy?

You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.

What file formats and sizes will I get?

You'll download 1 file - ZIP - 112.36 KB in total.

Do I get free updates?

Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.

Price

$6.00