How can you ask Codex to optimize a slow SQL query?
Provide the query, schema, indexes, representative row counts, execution plan, and latency target with sensitive values removed. Ask for hypotheses an…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 949–960 of 3610 questions
Provide the query, schema, indexes, representative row counts, execution plan, and latency target with sensitive values removed. Ask for hypotheses an…
Error handling should preserve useful diagnostics without leaking internal details to clients. Ask it to follow the application's error contract, dist…
Specify accessibility requirements, semantic HTML, keyboard navigation, focus management, readable error messages, and appropriate contrast. Validate…
Ask it to follow the project's existing state model and avoid duplicating derived state or introducing unnecessary global stores. Review effect depend…
Ask it to use existing domain types, narrow unknown values safely, model optional fields accurately, and avoid `any` or unsafe casts unless justified.…
Scope the review to threat-relevant paths such as authentication, authorization, input validation, secrets, deserialization, file access, and outbound…
Use synthetic or minimized examples, redact identifiers and secrets, and follow approved data-processing rules. Review tool retention and access polic…
Give the agent only the tools required for the task and constrain destinations, credentials, and allowed operations. Treat tool output as untrusted in…
Classify commands by risk and side effects. Read-only inspection and local tests are usually lower risk; destructive file operations, migrations, priv…
Decompose the work into milestones with clear boundaries and testable outcomes. Have the agent inspect and propose a plan first, then implement one la…
A model can only reason over the context available to it in a given task. Focused prompts, relevant files, concise summaries, and explicit constraints…
Ask it to identify call sites, interfaces, tests, configuration, database mappings, and downstream consumers before changing a symbol or contract. Ver…