Custom Post Types vs Database Table where many (10,000s + ) of entries are possible/desirable

I’m building a set of plugins… obviously, being plugins, they need to be suitable to a variety of installations. These plugins will keep track of specific types of user activity (namely whether links are clicked, actions taken, petitions sighned, that sort of thing) and provide access to the resulting data to the administrator.

So my question is custom post types vs a specific set of bespoke database tables… I would normally choose custom post types for this kind of data, but a succesfull campaign could result in 10,000s, even, if really successful, 100,000s of actions being recorded. Since the objective of the plugins is to assist people in developing succesful campaigns this is obviously the kind of scale I need to think about, so I am concerned about the possible degredation of wordpress performance if the wp_posts table is are swamped with 10,000s of custom post type entries. Is this a case where I would be justified in creating a new set of database tables to handle my data?

Related posts

Leave a Reply

1 comment

  1. This is one of the few cases i would prefer using custom database tables since you are talking about lots of records (10,000 – 100,000) and since Custom post types use the posts table which will hold many empty fields in the case you describe.

    But i guess there is no right or wrong way to do that and it’s a matter if opinion since a good (correctly) configured MySQL database can handle a lot more then a few 100,000’s records without a glitch.