I need to get Weather data from almost 200 German cities.
The point is I need to save the data since the beginning of this year and I should save the data from every single day, including the temperature during the hours of the day (Hourly temperature) and the min and max temperature for the whole day.
I know that is a huge amount of data, and it could be even bigger because it’s not decided yet if we will get the historical weather data from 10 years ago till now. Besides that the number of cities included into this could grow to add cities from other countries.
Is MongoDB a good way to save this data? If not, which method would be better to do it?
答案 0 :(得分:1)
您可以将MongoDB用于天气数据。 MongoDB 灵活和d 基于文章,您可以在一个地方存储类似JSON的二进制数据点,而无需事先定义那些“类型”的数据。
MongoDB是一个无模式数据库,可以加载大量数据,并且非常容易扩展。它支持分片,这是在数据大小增加时将数据存储在不同机器中的过程。这导致水平缩放并且可以写入更多数据。
它已被天气频道组织使用,因为天气变化很快。 Weather Channel转向MongoDB以快速向用户提供信息。过去需要数周的更改现在可以在几小时内推出。因此,MongoDB数据库将能够处理大量的天气数据。