Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[Resolved] MySQL table size 4.7MiB – emember_country_lookup

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › MySQL table size 4.7MiB – emember_country_lookup

Tagged: MySQL emember_country_lookup table size

  • This topic has 6 replies, 2 voices, and was last updated 3 years, 7 months ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 3, 2021 at 3:00 pm #83872
    coabirder
    Spectator

    I was perusing my WordPress MySQL database and noticed that the emember_country_lookup table size is 4.7MiB. This seems ginormous compared to other eMember/eStore tables. Upon browsing it there are 184 pages of 500 entries so something doesn’t seem right with that table.

    Thanks for your help.

    Steve

    November 4, 2021 at 12:09 am #83875
    admin
    Keymaster

    Our main plugin never creates any table like that. So that’s not from our main WP emember plugin. Are you using any addon or a customization on this site that probably uses that table?

    November 4, 2021 at 12:11 am #83876
    admin
    Keymaster

    I just double checked all our emember addons and I think you are using the Stats/Analytics addon which will use that table.

    Stats work by saving all the data on each visit of your members. So it can grow to be a large size as it keeps storing more and more data for the stats. You can’t have stats and analytics without storing data for it. So if you don’t want to use the stats addon, simply deactivate that addon then you can delete that Database Table.

    November 4, 2021 at 3:22 pm #83881
    coabirder
    Spectator

    Thank you for your reply. I’m thinking this data from the emember_country_lookup table might not be the “Stats” table you’re thinking of. Below is a sample from the beginning of the table (please excuse the formating) and another from the end. Note that there are >91K entries to this 4.7MiB file!! I have yet to take any action as I’d like to understand exactly what is generating this table before removing it as I’m sure you’d understand.

    There is another table called emember_stats_tbl where I do see data related to members.

    [Beginning of country_code_lookup table]
    Full texts
    id
    ip_from
    ip_to
    country_code2
    country_code3
    country_name

    Edit Edit
    Copy Copy
    Delete Delete
    1
    33996344
    33996351
    GB
    GBR
    UNITED KINGDOM

    Edit Edit
    Copy Copy
    Delete Delete
    2
    50331648
    69956103
    US
    USA
    UNITED STATES

    Edit Edit
    Copy Copy
    Delete Delete
    3
    69956104
    69956111
    BM
    BMU
    BERMUDA

    Edit Edit
    Copy Copy
    Delete Delete
    4
    69956112
    72349055
    US
    USA
    UNITED STATES

    ————————

    [from near the end of the table]

    Full texts
    id
    ip_from
    ip_to
    country_code2
    country_code3
    country_name

    Edit Edit
    Copy Copy
    Delete Delete
    91701
    3716537472
    3716537535
    AU
    AUS
    AUSTRALIA

    Edit Edit
    Copy Copy
    Delete Delete
    91702
    3716537536
    3716537567
    HK
    HKG
    HONG KONG

    Edit Edit
    Copy Copy
    Delete Delete
    91703
    3716537568
    3716537599
    JP
    JPN
    JAPAN

    Edit Edit
    Copy Copy
    Delete Delete
    91704
    3716537600
    3716538367
    AU
    AUS
    AUSTRALIA

    ————————

    Also, note that our site is pretty local to CT USA and it certainly puzzles me to see HUGE numbers of entries from other countries hence my question about this table and eMember.

    Your support form isn’t very kind with cut/paste or attachments or I’d share more of what I’m seeing in phpMyAdmin.

    Thanks for your continued assistance.

    Steve

    November 5, 2021 at 12:47 am #83883
    admin
    Keymaster

    The stats table needs to create multiple tables. The country one ALSO comes from the stats table (I have double checked the code of the stats addon). Bottom line is, you can’t have stats without a lot of data in various tables. Then the plugin connects those data to show the stats when you are viewing it. That’s how stats and analytics work in general. Please deactivate the emember stats addon and delete the DB tables.

    November 5, 2021 at 12:09 pm #83887
    coabirder
    Spectator

    Thank you for the detailed explanation. So I did try deactivating the eMember Stats plugin; then deleting just the emember_country_lookup table; then activating the plugin again. The emember_country_lookup table came back 20% larger just to spite me 🙂

    I’ll be leaving it alone now. I’ve decided that analytics is more important than a smaller WP database so I’m keeping the plugin installed after all.

    Thanks very much for your help.

    Steve

    November 5, 2021 at 11:27 pm #83891
    admin
    Keymaster

    The database size is actually not an issue (unless your are running out of space on your database). The tables created by this addon is only used by the addon so the data just sits there. It won’t cause any issue in terms of front-end performance since it is not loaded on the front-end. This particular data is only loaded by the addon when you go to the stats menu.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ