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

quantopian / zipline / 3723
88%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2015 02:14PM UTC
Jobs 2
Files 69
Run time 25s
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
3723

push

travis-ci

Eddie Hebert
PERF: Change asset finder to be backed by sqlite3.

Attack the startup bottleneck of creating the asset finders caches for a
large universe, which was between 1-2 seconds on development and
production machines.

Instead, allow the AssetFinder to be passed a sqlite3 file that has
already been populated and then hydrate asset objects only when an
equity is referenced for the first time.

To create aforementioned sqlite3, create an AssetFinder with an db_path
and `create_table` set to True. If `create_table` is set to False, the
prepopulated data in the sqlite file found at db_path will be used.

Default behavior is to use an in memory database.

Behavior that changes:

- Fuzzy lookup now only works on one character, that character needs to be
specified at write/metadata consumption time, since the fuzzy lookup key
is created by dropping the character from each symbol.

- Overwriting partially written metadata is no longer
  supported. i.e. some unit tests allowed for inserting just the identifier,
  and then later updating the symbol, end_date, etc.

  Instead of building an upsert behavior at this time, this patch
  changes the unit tests so that the data for each asset is only
  inserted once.

Other notes:

- populate_cache is now removed, since there is no longer a two step
  process of inserting metadata and then realizing that metadata into
  assets. _spawn_asset is rolled into insert_metadata, so that a call to
  insert_metadata both converts the metadata and makes it available in
  the data store.

6014 of 6876 relevant lines covered (87.46%)

1.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3723.1 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 14 Jul 2015 02:15PM UTC 0
87.42
Travis Job 3723.1
2 3723.2 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 14 Jul 2015 02:14PM UTC 0
87.42
Travis Job 3723.2
Source Files on build 3723
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3723
  • 36319122 on github
  • Prev Build on master (#3716)
  • Next Build on master (#3731)
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