Performance improvements, text search in Blog
commit734113ebdcb1c408832d9e34ae50396d1e49bc9e
authorpqauvsum <pqauvsum@posteo.cz>
Sun, 8 Oct 2017 18:25:44 +0000 (8 20:25 +0200)
committerpqauvsum <pqauvsum@posteo.cz>
Sun, 8 Oct 2017 18:25:44 +0000 (8 20:25 +0200)
tree03e17fec09042a2284b79bf7984077a9da95270c
parente5bb46debf3d372b498847c11a315d8bb18fa301
Performance improvements, text search in Blog

- blog: search by pattern in on Comment, Quoterecord, Order and
  Document objects, highlight matches
- speedup by caching Quote records contextually
- cashflow stream caching in SecurityBond model: speeds Watchlist
  up to a factor of 12
- added database indices to increase lookup speed on Security,
  Organization and Quote records
- use World Spot Price for precious metals
- BUGFIX: made position documents time-browsing sensitive
- BUGFIX: reliable date parsing by knowing format
- BUGFIX: documents on Position not shown
- BUGFIX: receiving USD quotes in the afternoon
20 files changed:
gui/Gemfile
gui/app/assets/stylesheets/application.css
gui/app/assets/stylesheets/blog.css
gui/app/controllers/blog_controller.rb
gui/app/controllers/position_controller.rb
gui/app/helpers/application_helper.rb
gui/app/models/security_bond.rb
gui/app/views/blog/index.html.erb
gui/app/views/position/show.html.erb
gui/app/views/quoterecords/index.html.erb
gui/db/migrate/20170713190337_speed_using_indexes.rb [new file with mode: 0644]
gui/lib/smr/asset_position.rb
gui/lib/smr/blog.rb
gui/lib/smr/reapers/kitco.rb
gui/lib/smr/reapers/onvista.rb
gui/lib/smr/uploaded_file.rb
gui/lib/smr/watchlist.rb
gui/test/fixtures/position.yml
gui/test/unit/fetch_kitco_test.rb
gui/test/unit/smr_asset_position_test.rb