P
P
Programmir2017-03-11 23:12:26
MySQL
Programmir, 2017-03-11 23:12:26

fetching json or mysql?

Let's say the user enters a letter and a list of cities is displayed via ajax. How will the selection be faster - through json or mysql?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Serenkov, 2017-03-11
@Programmir

It will be faster through MySQL, since you can immediately make a search query for the letter entered by the user, and if you use json, you will need to open the entire file and then search.

X
xutesayor, 2017-03-11
@xutesayor

json is a data interchange format.
mysql is a database management system.
How can you compare them?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question