{
    "url": "https://delaparra-services.nl/knowledge-hub/query",
    "locale": "en",
    "title": "Query: Knowledge hub | DeLaParra Services",
    "description": "A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/query",
        "nl": "https://delaparra-services.nl/nl/kennisbank/query"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/query.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/query.md",
        "json": "https://delaparra-services.nl/knowledge-hub/query.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/query.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/query.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query.csv",
            "encodingFormat": "text/csv",
            "name": "query.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query.json",
            "encodingFormat": "application/json",
            "name": "query.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query.md",
            "encodingFormat": "text/markdown",
            "name": "query.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query.pdf",
            "encodingFormat": "application/pdf",
            "name": "query.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query.zip",
            "encodingFormat": "application/zip",
            "name": "query.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/query/skills.zip",
            "encodingFormat": "application/zip",
            "name": "query-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Query](<https://delaparra-services.nl/knowledge-hub/query>)\n\n  \n\nCategory: Core glossary \n\n# Query\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Query?\n\n \n\nQuery: A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data. A query is a request for data. In SQL it is usually a ` SELECT ` statement that describes which rows and columns you want; in GraphQL it is an operation that fetches specific fields; in a search engine it is the text you type.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about Query\n\n  \n\n### How is Query used in practice?\n\n \n\nIn web applications, queries are often the biggest factor in performance. A page that runs 200 small queries, or one query without a suitable index, can be slow no matter how fast the server is.\n\n    \n\n### What should you keep in mind with Query?\n\n \n\nA few habits help. Select only the columns you need, add indexes for the columns you filter and sort on, and avoid queries inside loops. Use your framework's debugging tools to see which queries a page runs. And always pass user input as parameters, never by building SQL strings yourself, which is the classic route to SQL injection.\n\n \n\n## At a glance\n\n   CategoryCore glossary Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Core glossary terms\n\n \n\n- [Pipeline](<https://delaparra-services.nl/knowledge-hub/pipeline>) \n- [Pod](<https://delaparra-services.nl/knowledge-hub/pod>) \n- [Polling](<https://delaparra-services.nl/knowledge-hub/polling>) \n- [Queue](<https://delaparra-services.nl/knowledge-hub/queue>) \n- [Race condition](<https://delaparra-services.nl/knowledge-hub/race-condition>) \n- [Refactoring](<https://delaparra-services.nl/knowledge-hub/refactoring>)\n\n \n\n[All terms starting with Q](<https://delaparra-services.nl/knowledge-hub#letter-q>)\n\n \n\n## Skills\n\n \n\n- ### SQL Performance Optimization Assistant\n\n \n\n'Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.'\n\n [View skill](<https://delaparra-services.nl/skills/sql-optimization>) [Download zip](<https://delaparra-services.nl/skills/sql-optimization/download>) \n- ### Laravel Database Optimization\n\n \n\nLaravel database optimization patterns. Use when writing Eloquent queries, creating migrations, configuring caching, debugging slow queries, or optimizing database performance. Triggers on tasks involving N+1 queries, indexing, Redis caching, pagination, or database transactions.\n\n [View skill](<https://delaparra-services.nl/skills/laravel-database-optimization>) [Download zip](<https://delaparra-services.nl/skills/laravel-database-optimization/download>) \n- ### SQL Code Review\n\n \n\n'Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.'\n\n [View skill](<https://delaparra-services.nl/skills/sql-code-review>) [Download zip](<https://delaparra-services.nl/skills/sql-code-review/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/query/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Writing SQL queries and migrations](<https://delaparra-services.nl/manuals/sql-queries-en-migraties>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/query)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/query#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/query",
                "name": "Query: Knowledge hub | DeLaParra Services",
                "description": "A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/query#term",
                    "name": "Query",
                    "description": "A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data.",
                    "termCode": "query",
                    "url": "https://delaparra-services.nl/knowledge-hub/query",
                    "inLanguage": "en",
                    "keywords": "Core glossary",
                    "dateModified": "2026-11-25T17:46:29+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/query#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/query#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/query#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Query?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data. A query is a request for data. In SQL it is usually a SELECT statement that describes which rows and columns you want; in GraphQL it is an operation that fetches specific fields; in a search engine it is the text you type."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is Query used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "In web applications, queries are often the biggest factor in performance. A page that runs 200 small queries, or one query without a suitable index, can be slow no matter how fast the server is."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Query?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "A few habits help. Select only the columns you need, add indexes for the columns you filter and sort on, and avoid queries inside loops. Use your framework's debugging tools to see which queries a page runs. And always pass user input as parameters, never by building SQL strings yourself, which is the classic route to SQL injection."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/sql-optimization#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/laravel-database-optimization#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/sql-code-review#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/sql-queries-en-migraties#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/query#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "Query"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/query#dataset",
                "name": "Query",
                "description": "A request for data from a database or API. In SQL, a query is written in a SELECT statement; in GraphQL, a query is the operation that fetches data.",
                "url": "https://delaparra-services.nl/knowledge-hub/query",
                "identifier": "https://delaparra-services.nl/knowledge-hub/query#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/query#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Core glossary",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:29+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "query.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "query.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "query.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "query.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "query.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "query-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/query/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}