Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7535779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:23:38+00:00 2026-05-30T06:23:38+00:00

I’ve been trying to find a proper GeoIP database for our application and as

  • 0

I’ve been trying to find a proper GeoIP database for our application and as far as I can tell MaxMind City is probably the best (though if I’m wrong please let me know!).
I’m currently trying out the free version which isn’t really accurate in the UK, but it will do for testing purposes.

So getting back to the topic:

Our app is written in PHP and eventually we’ll be having a lot of incoming traffic. The reason why we’ll be using the GeoIP database is because we need to display the city, region, country on every page load as well as save the data for a specific visitor onto a mysql database. So I started thinking that loading the binary data on every page request will cause the server to consume a lot of RAM and will increase the processing speed. That’s why I’m wondering if it’s possible to cache it inside RAM and fecth it with PHP, because it’s 26Mb (I know it might not seem to be a lot), but still when we start to get thousands of page requests per second this will result in performance decrease which we obviously want to avoid.

The server:

Processor: 16 GHz (8 x 2 GHz)

RAM: 16384 MB

HDD: 400 GB

Apache + Nginx + Varnish, PHP5.3, MySQL5.1

We’re quite new to large-scale app development so if you have any suggestions how to improve performance in general, or have any other tips related to increasing performance for our case let me know.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:23:39+00:00Added an answer on May 30, 2026 at 6:23 am

    We are using MaxMinds GeoIP City for an Adserver application (so there is really much traffic). Some tests based on test scripts from MaxMind which put the database into memory was not efficient enough for us. Because data was cached for every single PHP process. So we decided to put the two tables (ip2location and city) into MySQL (you have to download the CSV files), which will cache the tables in memory also, because they are really small. With a clustered index on ip2location table, we’re able to query a loc_id for an IP in round about 10ms, so you just have to get the city data based on this loc_id, but this should be very fast also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.