Implementing system changes

We can now implement the changes to the system one-by-one:

  1. First we run chapter06_001.py through to chapter06_004.py in sequence to make changes to the data model.
  2. Then we execute chapter06_005.py to retrieve stock quote data for the Watch List. It is worth mentioning that UPSERT is a very nice feature of Cassandra. We do not encounter a duplicate primary key while we insert the same row into a table. It simply updates the row if the row already exists or inserts the row otherwise. It makes the data manipulation logic neat and clean.
  3. Further, we run chatper06_006.py to store the alerts by scanning over the stock quote data of each stock in the Watch List.
  4. Finally, we execute chapter06_007.py and chapter06_008.py to enquire alertlist and alert_by_date, respectively. Their sample test results are shown in the following figure:
    Implementing system changes
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset