
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Describe your database index in json files into your apps
Detailed documentation is in the "docs" directory.
Add "json_dbindex" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = ( ... 'json_dbindex', )
Run python manage.py list_jsindex
to list all defined indexes.
Create a file in you app directory called dbindex_create.json
with
following contents
| [{"name": "django_site_composite_idx", | "table": "django_site", | "columns": ["domain","name"], | "predicat": "WHERE id > 1000", | "using": "btree", | "database": "default", | "unique": yes}, | {"name": "django_site_name_idx", | "table": "django_site", | "columns": [{"name": "gist_trgm_ops"}], | "using": "gist", | "extension": "pg_trgm"}]
Trying to create an existing index will not generate an error, only a logging at level notice will be raised.
Create a file in you app directory called dbindex_drop.json
with
following contents.
| [{"name": "django_site_composite_idx"}, | {"name": "django_site_domain_idx"}]
Only the name is required. In the above example two indexes will be dropped. Trying to drop a non existing index will not generate an error, only a logging at level notice will be raised.
FAQs
Django complementary index definition and management.
We found that django-json-dbindex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.