A tour of the Luminesce Query Editor

Prev Next

This tour shows the Luminesce Query Editor's main features, one screen at a time: writing SQL, finding what to query, running queries, working with the results, saving and sharing, the designers and Candela. Each section links to the article that covers it in full. To try the Query Editor yourself step by step, start with Getting started with the Luminesce Query Editor.

The workspace

The editor is in the middle, the Catalogue of everything you can query is on the right, and the results appear under the editor. Each tab holds a query of its own, with its own results, so you can work on several at once.

See Understanding the Query Editor workspace for every part of the screen, and its keyboard shortcuts.

Writing SQL

The editor knows your catalogue. As you type, it suggests the providers, fields, functions and keywords that fit, with the documentation for each beside the list, and it underlines mistakes before you run anything.

Functions come with their own documentation, often with links to more:

See How do I write queries faster in the Query Editor?

Finding what to query

The Catalogue lists every provider and view you're allowed to use, with each one's fields, what type they are and what they mean. Search it, keep your favourites to hand, and open a provider's documentation in one click.

The information window shows everything about a provider or view: its fields, its inlined properties, what it depends on and, for a view, the SQL it runs.

See How do I find providers and fields in the catalogue?

Running queries

Press Shift+Enter to run the query, or just the part you've highlighted. Queries run on the server, so you can carry on in another tab while you wait, and the progress window shows each step as it happens, and why, if something goes wrong.

A query can ask for values when it runs, such as a date or a portfolio, so one query serves many purposes:

See How do I run a query and follow its progress? and How do I use parameters in a query?

Query sets

A query set is several named queries in one tab, each able to read the results of the ones above it. Independent queries run at the same time, and each result gets a tab of its own.

See How do I run several queries together as a query set?

Working with the results

The results grid holds every row, however many there are. Format each column from its menu, and colour cells or whole rows that meet a condition:

Filter and group the rows, and total them on each group and under the grid. Luminesce works every figure out over all the rows, not just those on screen.

Copy cells, or export the whole result as a file, to your computer or to Drive. An Excel export can keep the grid's formats, groups, totals and colours, so it looks just like the grid. See How do I format results?, How do I filter, group and total results? and How do I copy and download results?

Where a provider links a column, its values open the instrument, portfolio, file or other item they name, straight from the grid. A value with more than one link has a menu beside it.

See How do I open instruments, portfolios and more from my query results?

Where a value came from

Lineage shows, as a diagram, how a result was put together: which providers it read, and the variables, filters and joins in between. Open it for the whole result, or for one column.

See How do I see where a value in my results came from?

Saving and sharing

Save a query to your own workspace, or to a shared one for your team. The results' formatting, groups, filters and totals are saved with it, so everyone who opens it sees the same thing.

Every query you run is kept on the History page, so you can find it again, see what it returned, and run it again.

To run a query by itself every morning, or on any timetable, schedule it. See How do I save, open and share queries?, How do I find and re-run a past query? and How do I schedule a Luminesce SQL query?

The designers

The designers write SQL for you, by pointing and clicking. The query designer builds a query from the providers and fields you choose, with filters, totals and joins:

The file designer reads a CSV, Excel, SQLite or XML file, previewing it as you choose how:

The writer designer writes a query's results to LUSID, matching its columns to the writer's fields:

The view designer turns a query into a view that anyone with access can query like a provider, and the inlined properties designer adds LUSID properties to a provider as columns. See:

Candela

Candela, FINBOURNE's AI agent, writes Luminesce SQL from a plain-English request, checking it against the providers and fields in your domain. Ask it about the query in your tab, too: why it returns nothing, or how to make it faster.

Candela can also explain a result's lineage in plain words. See How do I use Candela in the Query Editor? Candela is currently available to some customers only.

Settings

The Data Virtualisation > Settings page sets how the Query Editor behaves for you, such as autocomplete, lineage, how many queries of a set run at once, and how empty values are shown.

See Query Editor settings reference.

What's next