github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

wvanbergen / active_olap

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 32
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (1)
  • Downloads (6)
  • Wiki (5)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (6)
    • active_olap-0.0.6
    • active_olap-0.0.5
    • active_olap-0.0.4
    • active_olap-0.0.3
    • active_olap-0.0.2
    • active_olap-0.0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

OLAP extensions for ActiveRecord — Read more

  cancel

http://wiki.github.com/wvanbergen/active_olap

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Released active_olap gem version 0.0.6 
wvanbergen (author)
Fri Jan 29 01:02:40 -0800 2010
commit  c57b358ffc72e996850bd2d825322907ec929b79
tree    99d647427f8e76b88cd0e667e4ba5442bd8c3fc4
parent  bc2b3b22e030b1cf10db3cf4b86d9f1d27909816
active_olap /
name age
history
message
file .gitignore Mon Dec 22 02:05:37 -0800 2008 Some filename refactoring [Willem van Bergen]
file MIT-LICENSE Sat Oct 10 01:41:51 -0700 2009 Added 2009 to copyright notice and removed trai... [Willem van Bergen]
file README.rdoc Sat Oct 10 01:58:50 -0700 2009 README fix [Willem van Bergen]
file Rakefile Thu Sep 10 00:44:40 -0700 2009 Updated to latest gem release tasks [Willem van Bergen]
file active_olap.gemspec Fri Jan 29 01:02:40 -0800 2010 Released active_olap gem version 0.0.6 [Willem van Bergen]
file init.rb Sat Dec 20 06:39:51 -0800 2008 Update file structure to gem [Willem van Bergen]
directory lib/ Fri Jan 29 01:02:20 -0800 2010 Added a check to see if a dimension contains ca... [Willem van Bergen]
directory spec/ Sat Oct 10 01:51:51 -0700 2009 Removed old rspec cruft, but left skeleton intact. [Willem van Bergen]
directory tasks/ Sat Oct 10 01:32:51 -0700 2009 Updated to latest gem release management tasks. [Willem van Bergen]
directory test/ Fri Nov 20 06:48:28 -0800 2009 Quickfix of tests [Willem van Bergen]
README.rdoc

Active OLAP

This Rails plugin makes it easy to add a basic OLAP interface to your application, which is great for administration interfaces. Its main uses are collection information about the usage of your application and detecting inconsistencies and problems in your data.

This plugin provides:

  • The main functions for OLAP querying: olap_query and olap_drilldown. These functions must be enabled for your model by calling enable_active_olap on your model class.
  • Functions to easily define dimension, categories and aggregates to use in your OLAP queries.

In the future, the following functionality is planned to be included:

  • A helper module to generate tables and charts for the query results. The gchartrb gem is needed for charts, as they are generated using the Google charts API.
  • A controller that can be included in your Rails projects to get started quickly.

More information about the concepts and usage of this plugin, see the Active OLAP Wiki on GitHub: wiki.github.com/wvanbergen/active_olap. I have blogged about this plugin on the Floorplanner tech blog: techblog.floorplanner.com/tag/active_olap/. Finally, if you want to get involved or tinker with the code, you can access the repository at github.com/wvanbergen/active_olap/tree.

Why use this plugin?

This plugin simply runs SQL queries using the find-method of ActiveRecord. You might be wondering why you would need a plugin for that.

First of all, it makes your life as a developer easier:

  • This plugin generates the nasty SQL expressions for you using standard compliant SQL, handles issues with SQL NULL values and makes sure the results have a consistent format.
  • You can define dimensions and aggregates that are "safe to use" or known to yield useful results. Once dimensions and aggregates are defined, they can be combined at will safely and without any coding effort, so it is suitable for management. :-)

Installation

To install the gem on your system, run:

  gem install active_olap -s http://gemcutter.org

Alternatively, you can include them gem into your Rails project by adding it to the configuration in your environment.rb file:

  gem.config 'active_olap', :source => 'http://gemcutter.org'

Requirements

This plugin is usable for any ActiveRecord-based model. Because named_scope is used for the implementation, Rails 2.1 is required for it to work. It is tested to work with MySQL 5 and SQLite 3 but should work with other databases as well, as it only generates standard compliant SQL queries.

Warning: OLAP queries can be heavy on the database. They can impact the performance of your application if you perform them on the same server or database. Setting good indices is helpful, but it may be a good idea to use a copy of the production database on another server for these heavy queries.

Another warning: while this plugin makes it easy to perform OLAP queries and play around with it, interpreting the results is hard and mistakes are easily made. At least, make sure to validate the results before they are used for decision making.

About this plugin

The plugin is written by Willem van Bergen for Floorplanner.com. It is MIT-licensed (see MIT-LICENSE).

  • The Floorplanner techblog contains some posts about this plugin that can be used as a reference: techblog.floorplanner.com/tag/active_olap
  • The project wiki also contains some documentation: wiki.github.com/wvanbergen/active_olap

If you have any questions or want to help out with the development of this plugin, please contact me on my github account.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server