GeoDirectory SupportPost icon is taking up a lot of space in the database – GeoDirectory Support https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/feed Wed, 04 Feb 2026 18:12:14 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33060 <![CDATA[Post icon is taking up a lot of space in the database]]> https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33060 Thu, 05 Mar 2015 21:36:23 +0000 headway I am going through and looking for ways to speed up the database, and noticed that the post icon is taking up the most space, which seems a bit odd. I have around 375,000 listings right now and here is what the table in question looks like (it is the largest table I have):

wp_geodir_post_icon – Entries: 1,075,727 , Data Size: 195.6 MB , Index size: 10.6 MB

I only have small icons uploaded to just some of the categories. I figured that each icon would only exist once and then would be called each time it is needed, rather than duplicated for each instance, but perhaps I am wrong.

Is there any way to optimize my database so as to increase its functionality?

]]>
https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33083 <![CDATA[Reply To: Post icon is taking up a lot of space in the database]]> https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33083 Thu, 05 Mar 2015 22:36:30 +0000 Paolo Hi,

in that table there are all info needed to retrieve maps markers without querying through the main post tables.

For each listing you have a row with 4 columns each:

id : 94
post_id 145
cat_id 43
json {“id”:”145″,”lat_pos”: “41.899305”,”long_pos”: “-87.62506″,”marker_id”:”145_43″,”icon”:”http://wpgeo.directory/wp-content/uploads/2014/05/hotel.png”,”group”:”catgroup43″}

This way we don’t have to join table and the queries are 10x faster.

Thanks

]]>
https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33087 <![CDATA[Reply To: Post icon is taking up a lot of space in the database]]> https://wpgeodirectory.com/support/topic/post-icon-is-taking-up-a-lot-of-space-in-the-database/#post-33087 Thu, 05 Mar 2015 23:05:25 +0000 headway Ah, okay. I thought it was for the map marker images themselves.

]]>