Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is searching PHP array faster than search/retrieve from MySQL

Tags:

php

mysql

Was curious to know which is faster - If i have an array of 25000 key-value pairs and a MySQL database of identical information, which would be faster to search through?

thanks a lot everyone!

like image 678
Tilo Mitra Avatar asked Nov 10 '09 05:11

Tilo Mitra


1 Answers

The best way to answer this question is to perform a benchmark.

like image 63
Asaph Avatar answered Sep 18 '22 22:09

Asaph