paolo.tateo
Member
Hi Fabrik people!
Joomla 2.5.24
Fabrik 3.0.5.2
My problem is this: I have a form with in many databasejoin fields like this:
Render join as: Drop-down
Connection: site database
Table: jos_app_order_status
Value: id
Label: order_status_name
Joins where and/or order by statement (SQL): WHERE id_contest="{$my->id}"
I enabled fabrikdebug (?fabrikdebug=1) and look what happens when Fabrik trying to render the field.
Strangely Fabrik perform two queries to create the array of values:
And after
The first query takes out thousands of results, then the second only three results. Since I have dozens of similar fields, the time taken to open the form is over 60 seconds.
Today I can't still update Fabrik, then I would prefer to change only the code necessary. I planned a major update in a couple of months, but I have to go slow: This site consists of 180 lists with a database of 120 GB. We are entering the Guinness Book of Fabrik?
Thanks
Joomla 2.5.24
Fabrik 3.0.5.2
My problem is this: I have a form with in many databasejoin fields like this:
Render join as: Drop-down
Connection: site database
Table: jos_app_order_status
Value: id
Label: order_status_name
Joins where and/or order by statement (SQL): WHERE id_contest="{$my->id}"
I enabled fabrikdebug (?fabrikdebug=1) and look what happens when Fabrik trying to render the field.
Strangely Fabrik perform two queries to create the array of values:
Code:
Array
(
[SELECT DISTINCT(`jos_app_order_status`.`id`) AS value, order_status_name AS text FROM `jos_app_order_status` AS `jos_app_order_status` ORDER BY text ASC ] => Array
And after
Code:
[SELECT DISTINCT(`jos_app_order_status`.`id`) AS value, order_status_name AS text FROM `jos_app_order_status` AS `jos_app_order_status` WHERE id_contest="1835" ORDER BY text ASC ] => Array
The first query takes out thousands of results, then the second only three results. Since I have dozens of similar fields, the time taken to open the form is over 60 seconds.
Today I can't still update Fabrik, then I would prefer to change only the code necessary. I planned a major update in a couple of months, but I have to go slow: This site consists of 180 lists with a database of 120 GB. We are entering the Guinness Book of Fabrik?
Thanks