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

RolifyCommunity / rolify / 617 / 2
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 18 Nov 2017 05:48AM UTC
Files 36
Run time 2s
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

18 Nov 2017 05:45AM UTC coverage: 92.125%. Remained the same
2.2.4, ADAPTER=active_record, gemfiles/activerecord_3.gemfile

push

travis-ci

EppO
remove a separate index for the name column for PG (#467)

remove a separate index for the name column if running on Postgresql

*Note:* I tested with Postgres only. Run an `EXPLAIN` query:  
```
> Role.where(name: 'Admin').explain
  Role Load (0.5ms)  SELECT "roles".* FROM "roles" WHERE "roles"."name" = $1  [["name", "Admin"]]
 => EXPLAIN for: SELECT "roles".* FROM "roles" WHERE "roles"."name" = $1 [["name", "Admin"]]
                                                     QUERY PLAN
--------------------------------------------------------------------------------------------------------------------
 Bitmap Heap Scan on roles  (cost=4.17..11.28 rows=3 width=96)
   Recheck Cond: ((name)::text = 'Admin'::text)
   ->  Bitmap Index Scan on index_roles_on_name_and_resource_type_and_resource_id  (cost=0.00..4.17 rows=3 width=0)
         Index Cond: ((name)::text = 'Admin'::text)
(4 rows)
```

https://github.com/ankane/pghero adds this index to the Duplicate Indexes section.

On roles  
`index_roles_on_name (name)`  
is covered by  
`index_roles_on_name_and_resource_type_and_resource_id (name, resource_type, resource_id)`

* add the name index only when necessary

1591 of 1727 relevant lines covered (92.13%)

69.06 hits per line

Source Files on job 617.2 (2.2.4, ADAPTER=active_record, gemfiles/activerecord_3.gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 617
  • Travis Job 617.2
  • 97569431 on github
  • Prev Job for 2.2.4, ADAPTER=active_record, gemfiles/activerecord_3.gemfile on master (#610.2)
  • Next Job for 2.2.4, ADAPTER=active_record, gemfiles/activerecord_3.gemfile on master (#623.2)
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