Database needs are a lot different in the current era of AI than they were a mere four years ago when the biggest demands on data came from analytics tools such as reports and dashboards.
Agents and other AI applications require massive amounts of data to be accurate, and they need that data in real time for their outputs to be contextually relevant. Those two demands make speed and performance at scale more critical than ever.
But maintaining performance while running petabyte-scale data workloads in in real time is not the only consideration for chief data, chief analytics and chief AI officers when deciding which databases to use for their AI workloads, according to the panelists in Microsoft's Ignite's "Database SOS: Choosing the right engine for your job" session.
When attempting to decide which of the scores of databases now on the market is best for an organization's AI initiatives, the decision makers need to assess whether a database can support both transactional and analytical workloads, whether a database needs to support capabilities such as vector embeddings and time-series data, or whether it needs to be able to conduct complex searches.
"The requirements for data are changing," Jesse Sullivan, Microsoft's vice president of database marketing, said at Ignite. "You need really high volumes to make the right decisions, and you need really low latency. From a capabilities perspective, databases are becoming more critical as a foundation for supporting AI ambitions."
While the database functions that fuel an enterprise's AI initiatives are high priority, so are security and compliance, especially for organizations in highly regulated industries such as finance, government and healthcare or those that operate across international borders and need to navigate multiple countries' regulations at once.
"You need all your data to be easily accessible, and then you to have it done right -- you need to be able to trust your data," Sullivan said. "So how do you choose? How do you figure out which database is best for you?"
Understanding an overwhelming array of database choices
Versatility and flexibility have made PostgreSQL the most popular database format over the past few years, according to Stack Overflow's annual Developer Survey. But PostgreSQL databases aren't the best option in all scenarios.
While PostgreSQL is a relational database built for complex queries of multiple tables, MySQL is a relational database optimized for simple queries of single tables. If a use case is straightforward, a MySQL database might be a better option than a PostgreSQL database.
"The requirements for data are changing. You need really high volumes to make the right decisions, and you need really low latency. From a capabilities perspective, databases are becoming more critical as a foundation for supporting AI ambitions."

Jesse Sullivan
Vice president of database marketing, Microsoft
In addition to relational databases, there are graph databases that, rather than connect one data point to just one other as in a relational database, simultaneously connect each datapoint to multiple others to create neural networks that make them optimal for applications such as fraud detection and personalized recommendations. Similarly, specialized vector, time series and geospatial databases -- among others -- all have their purposes and can be an optimal choice, depending on the use case.
Beyond the type of database is best for a given data or AI initiative, cost, compatibility with an organization's existing data management and AI development systems, and whether to use open-source or proprietary tools are all considerations.
For example, a specialized vector database such as Pinecone or Qdrant may be best suited for a specific project. But with databases from specialized vendors sometimes more expensive than multimodal databases that include support for vectors, and integrations between tools from different vendors often requiring complex integrations, the advantages of a purpose-built vector database might be outweighed by other factors.
"There is never a perfect database," Vilas Sarangdhar, head of cloud, data, analytics and AI center of intelligence for Tata Consultancy Services' Microsoft Business Unit, said at Ignite. "There are tradeoffs between the cost and timelines you have against the workloads you need to [execute]."
Deciding on a database
Certain database capabilities are becoming requirements for AI.
With AI needing current operational data to understand what is happening in the present, historical analytical data to comprehend an organization's trajectory and vectorized data to get context from documents and other unstructured data formats that now comprise an estimated 80-90% percent of all data, multimodal databases are often a necessity. Scalability and reliability are also more critical than in the past, while metadata, semantic modeling and ontology layers are each taking on added importance so that AI agents have the context they need without increasing data management and AI development costs to an untenable level.
With so many factors to consider, enterprises need to take a practical approach to picking a database, according to Eric Stoltze, the Americas cloud leader for IBM's Microsoft practice.
"Understanding your data estate is probably the most important thing you can do," he said at Ignite.
By doing so, at a basic level, an organization can at least understand whether what they need is a migration project or a new implementation.
"Then, you can start having a conversation about the goal, whether it's to reduce spending, increase performance or increase security," Stoltze continued. "There has to be one of those things that's driving it from an executive level."
After assessing their workloads and use cases, organizations should use a weighted scoring model to choose a specific database, according to Sarangdhar. They should look at the various factors they need to consider -- speed, scale, security, integration capabilities, total cost of ownership, licensing agreements, the data types required to build specific AI tools and the databases that support those data types -- and assign a value to each based on their importance.
"We go with a data-driven approach where we use a weighted average scoring model to arrive at which database a customer should choose," Sarangdhar said.
The weighted approach enables organizations to narrow their choice down to the databases that most closely fit their needs. From there, they can run proofs of concepts to ultimately determine the best fit.
"Once [a customer] has identified which category they want, we … show them what it means for them in their way of working in the present and the future," Moeen Sunasra, principal AI and data architect at Tech Mahindra, said at Ignite. "If you do that, it has better alignment, and everyone goes off and does the next steps executing and implementing … the right database."
A real-world decision on a database for AI
One of the customers Tata Consultancy Services (TCS) helped choose a database for its data and AI workloads is a large European bank.
The bank, which was not identified by Sarangdhar, had acquired another bank and needed to modernize the records management platform of the bank it bought. The project, therefore, was a migration rather than an implementation built from scratch.
The acquired bank had been using IBM's mainframe Db2 to store petabytes of data comprising billions of customer records. The European bank's goal, according to Sarangdhar, was to transform the historical records storage of the bank it acquired by moving them to a database with a microservices architecture so they could be discovered and operationalized to inform modern applications.
"It was a workload," Sarangdhar said. "And it involved sensitive data."
The data's main consumers were legal teams, so compliance capabilities were a key consideration when choosing which database to use for the acquired bank's records, he continued. In addition, there was considerable data reconciliation work that needed to be done within a specific timeframe, including making applications native to on-premises environments available in the cloud, so flexibility was also important.
"These were some of the requirements we had," Sarangdhar said.
Using a weighted soring model, TCS helped its customer narrow its choices to databases from the hyperscalers so that multiple databases set up to integrate with each other could share workloads. The final decision came down to Azure SQL DB, Azure PostgreSQL and Azure SQL Database Hyperscale, with the European bank ultimately selecting Azure SQL Database Hyperscale.
The migration took about a year, according to Sarangdhar. Now, however, the customer has reduced the total cost of ownership of the data it inherited by about 60%, data processing speed has increased over IBM's mainframe database, enterprise security is stronger, and legal, audit and regulatory concerns have all improved. In addition, the customer now has a scalable foundation for future data and AI initiatives.
"It was not only a migration," Sarangdhar said. "We made it an AI-ready foundation."
Choosing the right database ultimately comes down to having a business outcome in mind, understanding the challenges and requirements, and then fitting the database to the purpose, Microsoft's Sullivan added.
"You hear about one database to rule them all," he said. "But [instead], use the right one."
Eric Avidon is a senior reporter for Informa TechTarget and a journalist with more than three decades of experience. He covers analytics and data management.