Anyone ever experienced the need to save cf data with thousand of fields in database?
Any suggestion?
Is there a way from database? Like create a view from several tables and saving cf data in the view...
Any idea?
Hi Enzo,
Save the common payment data into the PayPal table and give each record a unique id. Save the 200 forms to separate tables* and link to the PayPal table with the unique id.
Bob
* I imagine that these are probably groups of very similar forms tso you probably don't need 200 tables.
Hi Enzo,
Only because it seems too complicated and therefore difficult to maintain and extend.
Making all the columns TEXT will slow the database down a bit as it has to allocate new space for each entry. Where you can you should use a smaller value of VARCHAR - 32 is usually enough for a name 64 for an email address . . .
If you have similar forms then it might be simpler in the long term to merge the tables - and or the forms. Hard to say more without knowing the what the forms are like.
Bob
<?php
$form->data['data'] = json_encode($form->data);
. . .
You can then have a data column in the table of type TEXT
. . .
. . .
$form->data[' form_name'] = $form->form['Form']['title'];
?>