ArticleslgStudy

computer science

Cubes (OLAP server)

Cubes (OLAP server) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cubes (OLAP server) rather than just read about it. In short: Cubes is a light-weight open source multidimensional modelling and OLAP toolkit for development reporting applications and browsing of aggregated data written in Python programming language released under the MIT License. Cubes provides to an analyst or any application end-user "understandable and natural way of reporting using concept of data Cubes – multidimensional data objects".

Key takeaways

  • Cubes (OLAP server) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cubes (OLAP server) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cubes (OLAP server) from memory before moving on to harder problems.

Reference excerpt

Cubes is a light-weight open source multidimensional modelling and OLAP toolkit for development reporting applications and browsing of aggregated data written in Python programming language released under the MIT License. Cubes provides to an analyst or any application end-user "understandable and natural way of reporting using concept of data Cubes – multidimensional data objects". Cubes was first publicly released in March 2011. The project was originally developed for Public Procurements of Slovakia. Cubes 1.0 was released in September 2014 and presented on the PyData Conference in New York

Features OLAP and aggregated browsing (default is ROLAP) logical model of OLAP cubes in JSON or provided from external sources hierarchical dimensions (attributes that have hierarchical dependencies, such as category-subcategory or country-region) multiple hierarchies in a dimension arithmetic expressions for computing derived measures and aggregates localizable metadata and data Cubes is capable of handling large amounts of data and complex queries. According to a review by TechTarget, Cubes can handle "data volumes in the hundreds of millions of rows" and "complex queries and calculations that require multi-level aggregations and dynamic subsetting." Additionally, the review notes that Cubes is well-suited for smaller organizations or teams that don't require the complexity and scalability of enterprise-level OLAP solutions.

Model The logical conceptual model in Cubes is described using JSON and can be provided either in a form of a file, directory bundle or from an external model provider (for example a database). The basic model objects are: cubes and their measures and aggregates, dimensions and their attributes, hierarchies. Logical model also contains mapping from logical attributes to their physical location in a database (or other data source). Example model:

Operations Cubes provides basic set of operations such as Data drilling and filtering (slicing and dicing). The operations can be accessed either through Python interface or through a light web server called Slicer. Example of the python interface:

Server The Cubes provides a non-traditional OLAP server with HTTP queries and JSON response API. Example query to get "total amount of all contracts between January 2012 and June 2016 by month": http://localhost:5000/cube/contracts/aggregate?drilldown=date&drilldown=criteria&cut=date:2012,1-2012,6&order=date.month:desc The response looks like:

The simple HTTP/JSON interface makes it very easy to integrate OLAP reports in web applications written in pure HTML and JavaScript. The Slicer server contains endpoints describing the cube metadata which helps to create generic reporting applications that don't have to know the database model structure and conceptual hierarchies up-in-front. The Slicer server is written using the Flask (web framework).

ROLAP and SQL The built-in SQL backend of the framework provides ROLAP functionality on top a relational database. Cubes contains a SQL query generator that translates the reporting queries into SQL statements. The query generator takes into account topology of the star or snowflake schema and executes only joins that are necessary to retrieve attributes required by the data analyst. The SQL backend uses SQLAlchemy Python toolkit to construct the queries.

See also

SQLAlchemy

References

External links Official website

Worked examples

Example 1 — a first encounter with Cubes (OLAP server)

Start with the simplest possible case. Write down what Cubes (OLAP server) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cubes (OLAP server) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cubes (OLAP server) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cubes (OLAP server)

In research
Cubes (OLAP server) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cubes (OLAP server) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cubes (OLAP server) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data analysis software, Data warehousing, Python (programming language) scientific libraries, so understanding it makes those chapters shorter.
In everyday life
Look for Cubes (OLAP server) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cubes (OLAP server)” →

How to study Cubes (OLAP server) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cubes (OLAP server) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cubes (OLAP server) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cubes (OLAP server) in simple terms?

Cubes is a light-weight open source multidimensional modelling and OLAP toolkit for development reporting applications and browsing of aggregated data written in Python programming language released under the MIT License. Cubes provides to an analyst or any application end-user "understandable and…

Why does Cubes (OLAP server) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cubes (OLAP server)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cubes (OLAP server).

Tags

  • Data analysis software
  • Data warehousing
  • Python (programming language) scientific libraries
  • SQL
  • Software using the MIT license

Keep exploring