datanommer.models.view module

class datanommer.models.view.CreateMaterializedView(name, selectable)[source]

Bases: ExecutableDDLElement

datanommer.models.view.create_view(connection)[source]

Create the recent_topics materialized view with proper indexes.

datanommer.models.view.get_selectable()[source]

Factory function to create the selectable query for materialized view.

datanommer.models.view.refresh_recent_topics(connection)[source]

Standalone refresh function that can be called from cron.

Parameters:

connection – SQLAlchemy connection object