Skip Navigation

[Résolu] Can a large database that is updated every 15 minutes be mapped to Types?

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Use Types plugin to map the data from another separate database(MLS providers/IDX providers).

Solution:

Toolset Types plugin can not map the data from another separate database, there isn't such kind of built-in feature within Toolset plugins.

Here are my suggestions:

https://toolset.com/forums/topic/can-a-large-database-that-is-updated-every-15-minutes-be-mapped-to-types/#post-1285839

Relevant Documentation:

https://developer.wordpress.org/plugins/cron/

This support ticket is created Il y a 4 années et 9 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 réponses, has 2 voix.

Last updated by laurieH Il y a 4 années et 9 mois.

Assisted by: Luo Yang.

Auteur
Publications
#1285789

Tell us what you are trying to do? I am building a real estate website that will access data from 1-2 RETS feeds from MLS providers. This is a lot of data and it can be updated as often as every 15 minutes. For a variety of reasons, I am choosing not to use an IDX provider. The current development plan being evaluated is to store the data in a separate database and to use CRON jobs to keep the data updated.

My question for Toolset: Will I be able to map the tables/fields in the database to Toolset Types so that I can use Toolset and Elementor to display the data? What have you found to be the best way of building a site with a large dataset that is being updated very often that leverages Toolset?

Thank you for your time 🙂

#1285839

Hello,

Toolset Types plugin can not map the data from another separate database, there isn't such kind of built-in feature within Toolset plugins.

Here are my suggestions:
1) Create a CRON job to load the new data from your data providers(MLS providers/IDX providers)
https://developer.wordpress.org/plugins/cron/

2) Put those new data into your website database, for example:
Insert new posts:
https://codex.wordpress.org/Function_Reference/wp_insert_post
Add post meta:
https://developer.wordpress.org/reference/functions/add_post_meta/
Setup terms of taxonomies:
https://developer.wordpress.org/reference/functions/wp_set_object_terms/

Notice: If the custom fields are created with Types plugin, you will need to add prefix "wpcf-" before the field slugs, for example: a custom field "my-field" created with Types plugin, in database table "wp_postmeta", in column "meta_key", you will need to use value "wpcf-my-field".

3) Then display those data with Types/Views shortcodes:
https://toolset.com/documentation/customizing-sites-using-php/functions/
https://toolset.com/documentation/user-guides/views-shortcodes/

#1289253

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.