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

cfpb / django-hud
76%
master: 76%

Build:
Build:
LAST BUILD BRANCH: add-index-together
DEFAULT BRANCH: master
Repo Added 21 Mar 2017 04:08PM UTC
Files 19
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

LAST BUILD ON BRANCH add-index-together
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • add-index-together

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

Relevant lines Covered
Build:
Build:
757 RELEVANT LINES 572 COVERED LINES
3.0 HITS PER LINE
Source Files on add-index-together
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
14 add-index-together 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 loo... push 22 Aug 2017 08:35PM UTC chosak travis-ci pending completion  
11 master Can travis build wheels and attatch them to releases Pull #21 14 Jul 2017 03:17AM UTC web-flow travis-ci pending completion  
10 master use correct quotes, remove OSM fallback Pull #19 19 Jun 2017 03:13PM UTC web-flow travis-ci pending completion  
9 master remove ",usa" from test Pull #19 08 Jun 2017 03:48PM UTC web-flow travis-ci pending completion  
7 master deprecate HTML rendering of results This commit deprecates the functionality in this project that renders HUD results in an HTML page. This functionality previously relied on an external template file hud_list.html which lives in CFPB's cfgov-ref... Pull #18 22 May 2017 02:29PM UTC web-flow travis-ci pending completion  
6 master Add external link icons and title links Search results are easier to navigate when the counselors' titles link to their websites. https://[GHE]/CFGOV/platform/issues/791 Pull #17 15 May 2017 10:32PM UTC web-flow travis-ci pending completion  
5 master add .coveragerc to better measure coverage Pull #16 21 Mar 2017 07:07PM UTC web-flow travis-ci pending completion  
4 master add travis/coveralls status badges Pull #16 21 Mar 2017 05:54PM UTC web-flow travis-ci pending completion  
3 master fix setup.py version to use setuptools-git-version Pull #16 21 Mar 2017 05:52PM UTC web-flow travis-ci pending completion  
2 master fix travis file Pull #16 21 Mar 2017 05:42PM UTC web-flow travis-ci pending completion  
See All Builds (10)
  • Repo 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