As far as I can see, the main problem you might have to deal with is having to store a fairly large amount of chat messages.
So to avoid making WP core functionalities querying post and postmeta from large amount of rows generated by your single functionality, it seems obvious to me you’d better create a custom table.
I believe this would also offer to you the possibility to optimize your table’s structure for your specific usage which would result in faster queries.
At this time, WP postmeta queries get very slow generally speaking, when they have to deal with a large amount of rows.
Look at the problem WooCommerce actually has when dealing with over 100k products which they store as post and postmeta. They’re on the way of fixing this by migrating all the products inside custom tables…
Related Posts:
- Where are wordpress custom types stored?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Save custom post type in different table
- How to handle a CSV with 65,000+ rows and make it searchable?
- Modification of how the data is controlled/showed and stored
- Is it a good idea to add a column to the posts table?
- Custom Columns for Custom Post Type Manager
- Clone wp-admin/users.php (Users Admin Page)
- Right way to store a large set of similar information on website? [duplicate]
- How to use TOC with ACF?
- Loop posts in a table ordered by a custom field value
- What is the most efficient way to manage changes my product comparison tables?
- Advanced search form with filters for custom taxonomies and custom fields
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Show Custom Taxonomy Inside Custom Menu
- Have different search results template depending of custom post type searched
- Why does a custom post type need the ”hierarchical’ args setting?
- WordPress REST Create Post of Custom Type
- How do I programmatically add items of content to a custom post type?
- Created a custom post type- can’t view it
- Merging two Custom Post Types into one
- is_singular won’t call my functions?
- Group search results by post type, but hide post types with no results
- Custom Slug for a custom post type and default post
- same archive template for different custom post
- how to set default value for checkbox in wordpress
- How do I Use Nested Loops of Custom Post Types for MultiSite Blogs using WP_Query()
- Page naming when there is a sub-category only sometimes.
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Impossible to get Attachments Outside WordPress?
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Taxonomy Templates
- Pagination on Custom Post Type: 404 Error
- Is it possible to create a shortcode that will query a post based on taxonomies?
- How can I show/add/save custom metaboxes as an Array of values?
- Query Multiple Meta Values and display only when it has both meta values
- Query custom post type in the loop
- Custom Post Types – Change order of menu items
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- get the custom post type title/name
- Custom post types as sub menu pages and role capabilities issue
- Troubles with acf/save_post and WP_Query
- Query custom post type with ACF Date
- Add custom field in comments form
- WordPress request fiter order by related post’s post_title
- Need help with permalink rewrites for Custom Post Types with hierarchical relationships
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- Custom post with more than one custom taxonomy
- Shortcode for CPT post content in a page
- How to use manage_$post_type_posts_columns with underscore in post type?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- How to automatic update date and time when save custom post type
- get_the_tag_list() returns bad links
- Filter second dropdown (tax) based on first dropdown (cpt)
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Merge page with custom post type
- Inefficient Query Confusion
- What is the diference between Post Metadata and Queried Object
- REST filters only firing when I have a param set
- WordPress custom post type and taxonomies
- Search for dates on custom post types
- list posts of two post types in a single template
- Multiple post types for BuddyBlog plugin [closed]
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Conflict in function to allow single post template based on category
- How to display “Trash” in my custom post type?
- Sort custom posts by date and then by taxonomy
- Add a form in every post and save data in post meta
- Custom post type sortable columns when column value is from a custom database value
- Plugin Development using classes – Public & Private Callbacks
- Correct way adding External classes to Custom Post type and output their methods to template
- Linking WordPress Post Types to Another
- Migration in new Custom-Post-Type-Structure
- Get posts in custom post type categories
- Rest Api not working with Iframe in form data
- is using “require_once” in wordpress theme affect the speed ???
- Getting Custom Posts with Custom Taxonomy
- Custom Template for CPT Categories
- How to redirect CPT permalinks from ID to default pretty permalinks?
- Custom Taxonomies in body class with parent slug
- Multiple archives for cpt, taxonomies, terms
- How to pass taxonomy terms to WP_Query along with $args?
- Display custom Taxonomies same as listing Categories
- Show all post of a taxonomy with one specific term not working
- Can you get the themes options page to turn on/off which custom post types are registered?
- Thumbnails for custom post not showing up in query
- custom post types, pre_get_posts, wp_list_categories
- WordPress nested loop not working
- next_posts_link returns same content of 1st page
- Cant we use a PHP file directly like myhome.com/some.php?
- Post type cloud like tag cloud?
- Is this the correct way to add post-slug input field?
- Are there established patterns for developing custom post types?
- Determine category in taxonomy of current custom post type
- Create settings page to enable or disable CPT
- Drawbacks of making the default post-type: post hierarchical [closed]
- Show category only if post type is post_three