In typical use cases the performance cost of booting WordPress core for page load is significantly higher than querying for data. In other words it doesn’t quite matter, because it won’t be a bottleneck.
You have to estimate:
- How close your data is to native WordPress concepts
- How much work (if any) it would be required to put it in such representation
- How complex queries it would need for data retrieval
Against making custom SQL table. This cannot be done in general, only for specific case and data. The closer it is to what WP typically handles the more you will benefit from native API and caching mechanisms. But for data that is considerably different in nature separate storage might very well make more sense.
Related Posts:
- Custom post order when using OR relation
- Get Post ID by Content
- modify all posts of a category to “no comments allowed”
- Ordering Post 2 Post admin meta box by meta from CPT
- Add special meta box to custom post type
- SQL to update custom post taxonomies
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- Create Pages from Database
- How do I write this SQL statement for Posts written in last 24 hours?
- Combine tax_query and meta_query in WP_Query
- Query to get the author who having maximum number of post (custom post type)
- Query to change custom post type with specific category
- Mass convert MySQL data entries into custom post type?
- Calculating Bayesian average for custom post type
- Query that joins the postmeta table twice
- Export entries and multiple custom field meta to .csv?
- Deleting Custom Post type data using mySQL command
- wpdb custom post_type problem
- Adding custom tables to WordPress
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Insert post metadata for all posts in CPT at once if metadata no existent
- Convert simple SQL Query to WordPress query
- How to Mass Delete Images from Media Library
- Including metaboxes from custom post types in global search — continued
- Assign External Database Queries to Global Variables and Make Them Accessible
- How to import a custom MySQL DB table into a WordPress custom post type
- Function causing the loop display posting more (empty)
- Order a custom post type admin screen by a second custom post type title
- wp_insert_post sometimes fails after API call
- Proper way to display latest 5 posts grouped by post type?
- Navigate posts with different post type that are in the same categories
- How to concatenate two separate colums into one?
- Update post if exist from PHP
- Custom Search | check multiple meta_value for search value
- I’m trying to create a custom version of the wp_list_authors function that includes custom post types
- A faster way to query custom post types with multiple conditions?
- New post from database
- Convert Custom Taxonomy Posts to Normal Posts
- How to import database table as custom post type and custom fields?
- $wpdb is queried but results don’t show
- SQL query – get ids – Advanced Custom Fields / WPeC
- Why doesnt my tag page populate with this custom post type?
- Fetch data of 2 relational Custom Post in WordPress
- SELECT custom post type and its meta in SQL
- WP_query has incorrect wp_posts.post_name = ‘asc’ when I have custom post type called ‘order’
- Custom post type and custom taxonomy key lenght & query performance
- Why is this function so slow?
- Sql Update CPT from publish to draft and particular custom field
- How to transfer categories (default) to custom taxonomy?
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Post that populates itself (almost) automatically using data from imported excel file
- Populate custom post type/custom fields from an external database
- This wp_query will not return any posts and only seems to work with post_status inherit?
- Problem with a query in custom posts
- Filtering problem
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Assign a tag to custom post type using a query
- Query custom fields with three dates – start and end does not work
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- Limit number of custom posts per taxonomy
- Tracking changes in admin-page so user gets warning when leaving the page
- Custom taxonomies relationship
- filter custom post in rest api with custom function
- Get Posts by multiple custom fields is not working
- How to change wp prefix for custom post type only?
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- create a new page from a custom post type similar to an authors page
- I want to change the word “Tags” in WordPress to something else, but how?
- How to handle paged param in post and custom-post-type?
- Set a checkmark in a category based on a URL-parameter
- CPT archive admin menu label
- Anon function and add_meta_box
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Several post types on WP Query by tag and taxonomy
- Custom post type – use ajax to display sub pages
- Number of Custom Post Types published are not being shown in the custom page
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Possibilities for the edit.php admin panel? [closed]
- Default text in a specific post type, but not visible?
- Remove Add Media and all Rich text editor buttons?
- Woocommerce custom field search in custom post type [closed]
- No Permission to add new Page, Post or CPT with Admin role
- Using meta_query and tax_query at the same time
- Form action/link to render a plugin in WordPress front-end
- Update postmeta Parent when post_status child change
- WP Query with categories only shows one post and ignores the category
- How to display custom WP menus?
- Allow Contributor to edit but not update a published post
- Send notifications to custom post author when custom post is edited
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- What to and how to proceed with CPT to make DB small and efficient?
- How to display error message in password protected form using ajax jQuery?
- Metabox not show in categories custom post type cmb2
- What is the best practice for displaying my plugin content in themes?
- Categorize custom post type
- Content vs Template on custom post
- How to Create Columns with WordPress and CPTUI display page ?