SingleStore is a foundational datastore that incorporates machine learning functions in three ways: calculations outside the database, calculations on ingest, and calculations within the database. SingleStore offers an open source Spark Connector for integrating ML and AI outside the database, enabling high-throughput and bi-directional operations with Spark and TensorFlow. This integration allows for real-time machine learning scoring and predictive analytics, such as powering wind turbines' sensor information to predict equipment failures. Within the database, SingleStore enables machine learning through extensibility, including stored procedures and algebraic operations like DOT_PRODUCT, which can compare vectors for similarity or execute elements of a machine learning pipeline quickly. This allows organizations like Thorn to improve their real-time image recognition capabilities and build a machine learning recommendation engine in SQL.