Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

zostera/django-jeaves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-jeaves

Django EAV using JSONField

Features/requirements

  • Uses one django.contrib.postgres.JSONField (PostgreSQL jsonb field) per model.
  • Django 1.9, 1.10, 1.11 (with their supported python versions)
  • PostgreSQL >= 9.4 and Psycopg2 >= 2.5.4.

Running the tests

tox

Rationale

At Zostera, we tried some different approaches to store attributes for our records. While existing solutions using a Unit, Attribute and ObjectAttribute models did work, they resulted in performance issues while retrieving big lists with a lot of attributes.

This project is basically some nice syntax around the idea outlined in this blogpost.

Related projects

About

Django EAV using JSONField

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages