Hi,
I hope that somebody can advice me on the following:
I have two big tables/lists.
One will be updated every week with data (import) for the next week.
The other one will be updated every weekday with data (import) for the next weekday.
On the second list I have a php events plugin with the following code:
$myDb = JFactory::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery
-> update('jos_1b_import_transporter_daily1 AS t')
-> join('INNER','jos_1b_import_transporter AS a ON t.projekt_namn = a.projekt_namn')
-> set('t.text_1 = a.trailertyp_ba')
-> where('t.lass_nr = a.lass_nr AND t.leverans_datum >= NOW()');
$myDb->setQuery($myQuery);
$myDb->execute();
This I have three times for three columns.
Please note that the "leverans_datum" is a field and no date element.
Without the code the list loads normal.
With the code the list loads slow.
What do I do wrong and how can I improve the loading speed?
Thanks a lot!
I hope that somebody can advice me on the following:
I have two big tables/lists.
One will be updated every week with data (import) for the next week.
The other one will be updated every weekday with data (import) for the next weekday.
On the second list I have a php events plugin with the following code:
$myDb = JFactory::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery
-> update('jos_1b_import_transporter_daily1 AS t')
-> join('INNER','jos_1b_import_transporter AS a ON t.projekt_namn = a.projekt_namn')
-> set('t.text_1 = a.trailertyp_ba')
-> where('t.lass_nr = a.lass_nr AND t.leverans_datum >= NOW()');
$myDb->setQuery($myQuery);
$myDb->execute();
This I have three times for three columns.
Please note that the "leverans_datum" is a field and no date element.
Without the code the list loads normal.
With the code the list loads slow.
What do I do wrong and how can I improve the loading speed?
Thanks a lot!