MongoDB to insert the generated documents, preferably on localhost for fast inserting.
scrapy runspider movies.py
after that
scrapy runspider ratings.py
- create an index on movie_id in the ratings table. When the number of documents grows, this ensures that the count of documents functions fast.