• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cfpb / django-hud / 14 / 1
76%
master: 76%

Build:
Build:
LAST BUILD BRANCH: add-index-together
DEFAULT BRANCH: master
Ran 22 Aug 2017 08:35PM UTC
Files 19
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Aug 2017 08:30PM UTC coverage: 74.769%. First build
TOXENV=py27-dj18

push

travis-ci

chosak
add additional index to CachedGeoData

@marcesher made the observation that queries against cached geodata
could potentially be optimized through use of an additional index. When
the cached geodata is queried in `hud_api_replace.geocode`, it's looked
up using Python code like

```py
CachedGeodata.objects.filter(expires__gte=time.time()).get(key=address)
```

In practice this results in SQL like

```sql
SELECT * FROM hud_api_replace_cachedgeodata
WHERE expires >= %s AND key = %s
```

This commit adds a joint index on these two columns, which should speed
up these queries. See Django documentation on `index_together` at

https://docs.djangoproject.com/en/1.8/ref/models/options/#index-together

566 of 757 relevant lines covered (74.77%)

0.75 hits per line

Source Files on job 14.1 (TOXENV=py27-dj18)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14
  • Travis Job 14.1
  • eaa93418 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc