Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2018-07-17 01:42:22.668] 1) Date check | From: 2018-03-16 16:02:13.000 | To: 2018-07-17 01:40:13.000
- [2018-07-17 01:42:22.668] ************************ 1. Rounding down the 'from' time to the nearest round period
- [2018-07-17 01:42:22.672] 2) Date check | From: 2018-03-16T16:00:00Z | To: 2018-07-17 01:40:13.000
- [2018-07-17 01:42:22.672] ************************ 2. Counting how many intervals exist in our to/from range
- [2018-07-17 01:42:22.673] Time range is from 2018-03-16T16:00:00Z to 2018-07-17T01:40:13Z
- [2018-07-17 01:42:22.674] Number of 1 hour periods in range: 2941
- [2018-07-17 01:42:22.674] ************************ 3. Generating an array with all of the potential time slots for bars that could exist in our period
- [2018-07-17 01:42:22.875] ************************ 4. Checking to see if each bar exists in Redis (cache) before we go to the DB
- [2018-07-17 01:42:24.044] ************************ Done getting elements from Redis
- [2018-07-17 01:42:24.044] No results found in cache
- [2018-07-17 01:42:24.045] ************************ 5. Calculating bars we need to get from the DB
- [2018-07-17 01:42:24.045] ********************************************************* 2018-07-17 01:40:13.000
- [2018-07-17 01:42:24.045] New time range is from 2018-03-16T16:00:00Z to 2018-07-17T01:40:13Z
- [2018-07-17 01:42:24.046] Number of 1 hour periods in new range: 2937
- [2018-07-17 01:42:24.047] ************************ Getting bars from DB
- [2018-07-17 01:42:24.047] From: 2018-03-16T16:00:00Z | To: 2018-07-17 01:40:13.000
- [2018-07-17 01:42:36.179] ************************ Done getting bars from DB
- [2018-07-17 01:42:36.179] ************************ Adding new bars to Redis & assembling final result
- [2018-07-17 01:42:36.320] ************************ Done adding elements to Redis
- ************************ Returning bars Result
- query: 13657.709ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement