Skip to content

Commit

Permalink
Tidy up (#11)
Browse files Browse the repository at this point in the history
* Small edits to readme

* Rename models for consistency

* Remove reference to removed model
  • Loading branch information
clrcrl authored and drewbanin committed Mar 12, 2018
1 parent 01326ff commit 9f5fd45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This package provides a number of base models for Redshift system tables, as wel

__Base Models__

Each of these base models maps 1-to-1 with the underlying Redshift table.
Each of these base models maps 1-to-1 with the underlying Redshift table. Some renaming has been performed to make the field names grokable.

- pg_attribute
- pg_class
Expand All @@ -34,14 +34,17 @@ __Ephemeral Models__
These ephemeral models simplify some of Redshift's field naming and logic, to make the data more usable.

- redshift_cost: transforms the start and max explain cost values from stl_explain into floating point values
- users: transforms pg_users to make the field names grokable

__View Models__

These views are designed to make debugging your Redshift cluster more straightforward. They are, in effect, materializations of the [Diagnostic Queries for Query Tuning](http://docs.aws.amazon.com/redshift/latest/dg/diagnostic-queries-for-query-tuning.html) from Redshift's documentation.

- queries: Simplified view of queries, including explain cost, execution times, and queue times.
- table_stats: Gives insight on tables in your warehouse. Includes information on sort and dist keys, table size on disk, and more.
- [queries](models/views/queries.sql): Simplified view of queries, including explain cost, execution times, and queue times.
- [table_stats](models/views/table_stats.sql): Gives insight on tables in your warehouse. Includes information on sort and dist keys, table size on disk, and more.

These views are designed to make user privilege management more straightforward.
- [users_table_view_privileges](models/views/users_table_view_privileges.sql): Gives insights into which [privileges](https://docs.aws.amazon.com/redshift/latest/dg/r_HAS_TABLE_PRIVILEGE.html) each user has on each table/view.
- [users_schema_privileges](models/views/users_schema_privileges.sql): Gives insights into which [privileges](https://docs.aws.amazon.com/redshift/latest/dg/r_HAS_SCHEMA_PRIVILEGE.html) each user has on each schema.

__Introspection Models__

Expand Down
File renamed without changes.

0 comments on commit 9f5fd45

Please sign in to comment.