Skip to content

rutube/django_vertica_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Vertica Backend

A proof-of-concept for connecting Django ORM to HP Vertica database.

Build Status

Current status

  • Django ORM SELECT works for some examples
  • Django schema dumping works
  • Can't run tests on Vertica DB as Vertica doesn't support database creation

Installation

  1. install vertica_python and django_vertica_backend
  2. edit settings.py
    DATABASES = {
      'default': {
        'ENGINE': 'vertica',
        'NAME': 'dash',
        'HOST': 'localhost',
        'PORT': 5433,
        'USER': 'dbadmin',
        'PASSWORD': 'password'
      }
    }

Example

from django.db.models import Sum
from test_app.models import PlatformReport

qs = PlatformReport.objects.filter(date__gte='2014-09-15')
qs = qs.values('platform_id')
qs = qs.annotate(video_views = Sum('video_views'))
print qs[100:500]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages