anna-liepina / explore-cwa-react

MIT License
2 stars 0 forks source link

implement Markers API #93

Open eugene-matvejev opened 9 months ago

eugene-matvejev commented 9 months ago

Purpose: The implementation of the Markers API aims to enhance data retrieval efficiency by avoiding full scans, reducing unnecessary data fetches, and enabling the effective utilization of NoSQL databases.

Benefits: Reduced Information Fetching: By utilizing the Markers API, we can avoid fetching extra information, leading to a more streamlined and efficient data retrieval process. NoSQL Compatibility: Leveraging the Markers API allows us to utilize NoSQL databases more effectively. We can use Marker ID or latitude/longitude information to fetch data within the 16 MB limit in MongoDB.

Technical Implementation:

Marker ID or Lat/Lng Usage: Utilize the unique Marker ID or latitude/longitude information as key parameters in the API to retrieve specific data points, eliminating the need for extensive scans. Integration with NoSQL Database: Ensure seamless integration with NoSQL databases, such as MongoDB, to fully leverage their capabilities for optimized data storage and retrieval.

Context: To address the current challenges related to full scans and to prepare our system for the future scale, the introduction of the Markers API is crucial. This approach aligns with best practices for efficient data handling and complements our transition to NoSQL databases.

Let's discuss and plan the implementation details to ensure a smooth integration that maximizes the benefits of the Markers API.

Your insights and feedback on this proposal are highly valuable.

anna-liepina commented 8 months ago

https://github.com/anna-liepina/explore-cwa-react/pull/97 POC :)

anna-liepina commented 8 months ago

I loads now VERY FAST :) we can even remove range limit and set it to 5 :heart: