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

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

Build:
Build:
LAST BUILD BRANCH: add-index-together
DEFAULT BRANCH: master
Ran 22 Aug 2017 08:35PM UTC
Jobs 4
Files 19
Run time 3min
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

pending completion
14

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

7 of 7 new or added lines in 2 files covered. (100.0%)

572 of 757 relevant lines covered (75.56%)

3.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14.1 (TOXENV=py27-dj18) 22 Aug 2017 08:35PM UTC 0
74.77
Travis Job 14.1
2 14.2 (TOXENV=py27-dj110) 22 Aug 2017 08:36PM UTC 0
74.77
Travis Job 14.2
3 14.3 (TOXENV=py35-dj18) 22 Aug 2017 08:36PM UTC 0
75.43
Travis Job 14.3
4 14.4 (TOXENV=py35-dj110) 22 Aug 2017 08:37PM UTC 0
75.43
Travis Job 14.4
Source Files on build 14
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #14
  • 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

© 2025 Coveralls, Inc