SQLite or MySQL?
#15

As a matter of fact, I do. I have imported the MaxMind GeoIP database into MySQL, using numerical IP ranges for increased efficiency. Some 100,000 rows. If I need to join that table to retrieve a country code or a CIDR range it sometimes takes a while, depending on the query, even with proper indexing.

For example:
PHP Code:
SELECT a.reg_nameINET_NTOA(a.regip), c.namei.block FROM account_main a
JOIN list_ipv4 i ON a
.regip BETWEEN i.range_start and i.range_end
JOIN list_countries c ON i
.country_code c.code 
Executes on average in 1.14 seconds. And that's just for the 28 accounts in my local test instance.
Reply


Messages In This Thread
SQLite or MySQL? - by Terrorizt - 04.07.2015, 23:46
Re: SQLite or MySQL? - by Abagail - 04.07.2015, 23:58
Re: SQLite or MySQL? - by Sergei - 05.07.2015, 00:14
Re : SQLite or MySQL? - by Terrorizt - 05.07.2015, 00:14
Re: SQLite or MySQL? - by ZachKnoxx - 05.07.2015, 00:15
Re: Re : SQLite or MySQL? - by Jake187 - 05.07.2015, 02:58
Re: SQLite or MySQL? - by dominik523 - 05.07.2015, 13:02
Re : SQLite or MySQL? - by Terrorizt - 05.07.2015, 13:33
Re: Re : SQLite or MySQL? - by Finn - 05.07.2015, 14:22
Respuesta: SQLite or MySQL? - by [DOG]irinel1996 - 05.07.2015, 14:24
Re : Re: Re : SQLite or MySQL? - by Terrorizt - 05.07.2015, 14:25
Re: SQLite or MySQL? - by Vince - 06.07.2015, 12:45
Re: SQLite or MySQL? - by Sergei - 06.07.2015, 15:35
Respuesta: SQLite or MySQL? - by ronaldfa - 06.07.2015, 15:59
Re: SQLite or MySQL? - by Vince - 06.07.2015, 16:06
Re: SQLite or MySQL? - by Finn - 06.07.2015, 16:07
Re: SQLite or MySQL? - by ipsLeon - 06.07.2015, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)