--- title: "How do I write queries faster in the Query Editor?" slug: "how-do-i-write-queries-faster-in-the-query-editor" updated: 2026-11-24T13:59:14Z published: 2026-11-24T13:59:14Z canonical: "support.lusid.com/how-do-i-write-queries-faster-in-the-query-editor" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.lusid.com/llms.txt > Use this file to discover all available pages before exploring further. # How do I write queries faster in the Query Editor? You rarely need to remember a provider's exact name or a field's spelling in the Luminesce Query Editor. It suggests them as you type, underlines mistakes before you run anything, tidies your SQL in one click, and can hand the whole job to Candela, FINBOURNE's AI agent, when you'd rather describe what you want. ## Prerequisites - Access to the Luminesce Query Editor in the LUSID web app, under **Data Virtualisation > Query Editor**. - For Methods 1 and 2, **Enable query editor autocomplete** and **Enable parse error underlining** turned on, which they usually are. See [Query Editor settings reference](/v1/docs/query-editor-settings-reference). ## Methods ### Method 1: Let autocomplete fill in names Start typing and the editor suggests what can come next, from what you can use in your domain: - Providers and views after `from` or `join`. - Type a dot to move down a level, for example `Lusid.` then `Portfolio.` - Table variables (`@table` ) and cached table variables (`@!table` ) as well as, in a query set, the names of the queries above, after `@` all show up here too as thet, like providers, are “tables of data”. - Fields and parameters of the providers in your query. - Functions, keywords, and your own and `@@scalar` variables. Each suggestion says what kind of thing it is, and many show their documentation beside the list. Use the arrow keys to move through the list and **Enter** or **Tab** to insert one, or keep typing to ignore it. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-9HC6P5JQ.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=g3g9aHRegEa8ey%2FRqK2n6fF70YjpXafX1ViKoK1qf3k%3D) ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-UCFGC3RD.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=3uZkA7wWUwb%2FPCIlhn6Gew6GJSfBEZHlPXSb3XchKWg%3D) ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-RE88F1SE.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=YLx1oTwgEzjv5WQvfv2BYfidPK%2FCCk0NFzzZcf6z52Q%3D) ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-UHYSFTZE.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=I1uTYNgpEB%2FCou294clfbAqJXRCkzezC3K3cRCIGES8%3D) Functions all have their own detailed documentation, generally including links off to various documentation. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-NX1HMD48.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=tInwULZASn9S9WRQXtoAtG54ypHbMDWfSNmtcADx2F0%3D) ### Method 2: Fix mistakes before you run About a second after you stop typing, the editor checks your SQL and underlines anything Luminesce can't understand, such as a misspelt keyword or a missing bracket. Fix the underlined part and the underline goes. In a query set, each query is checked on its own. ### Method 3: Copy a name from the Catalogue When you're browsing rather than typing, find the provider in the Catalogue and select **Copy table name** on its row, then paste it into your query. Expand the provider to see its fields and parameters. See [How do I find providers and fields in the catalogue?](/v1/docs/how-do-i-find-providers-and-fields-in-the-catalogue) ### Method 4: Tidy and test as you go - Select **Pretty print** on the editor's toolbar to lay out your query with consistent line breaks and indents. - Highlight part of a query and press **Shift+Enter** to run just that part, for example to check one table variable before you build on it. With nothing highlighted, **Shift+Enter** runs the whole query. - Select the lock to make a tab read-only, so a query you're happy with can't be changed by accident. ### Method 5: Build a query by pointing and clicking Select **Query designer** on the toolbar to pick a provider, its fields, filters and joins from lists, and have the designer write the SQL. If you highlight a query first, the designer opens with that query loaded, so you can change it there. ### Method 6: Ask Candela 1. Select **Query Editor assistant** on the toolbar. 2. Describe what you want in plain words, for example *"total units held per portfolio in Finbourne-Examples"*, or ask Candela to explain or fix the query in the editor. For Candela to see your query, turn on **add query** beside the prompt before you send; it sends the text you've highlighted, or the whole query if you haven't highlighted anything, and turns itself off after each message. 3. On a query Candela writes, select **Add to query editor** to add it to the end of your query, or **Copy content** to paste it where you like. For more, see [How do I use Candela in the Query Editor?](/v1/docs/how-do-i-use-candela-in-the-query-editor) Candela availability Candela is currently available to some customers only. If it isn't available in your domain, you don't see **Query Editor assistant**. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-QOSWSVM1.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=alL4lSHYw8d7SVuqavYyoySu4uJXo7KKjUC4GbmFuQM%3D) ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-7KZLGJEF.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A09Z&se=2026-11-24T15%3A55%3A09Z&sr=b&sp=r&sig=DfeuWoF%2B0lMMi8ryHwKhZiAwM71kZ1J3wgVezkKHOBY%3D) ## Troubleshooting ### No suggestions appear Check that **Enable query editor autocomplete** is on, on the **Data Virtualisation > Settings** page. An alternative to that is simply to hit CTRL+SPACE whenever you wish to explicitly open the context help. A provider you don't have permission to use is never suggested; if you expect one that isn't there, ask your LUSID administrator. ### Add to query editor does nothing The tab is read-only. Select the lock to unlock it, or open a new tab, then try again. ## Related articles - [Understanding the Query Editor workspace](/v1/docs/understanding-the-query-editor-workspace) - [How do I run a query and follow its progress?](/v1/docs/how-do-i-run-a-query-and-follow-its-progress) - [Understanding the Luminesce SQL query syntax](/v1/docs/understanding-the-luminesce-sql-query-syntax) - [How do I use Candela in the Query Editor?](/v1/docs/how-do-i-use-candela-in-the-query-editor) - [How do I write queries faster?](/v1/docs/how-do-i-write-queries-faster), for the same task in LumiCode