lento
lento
funciona pero tarda mucho alguna sugerencia
This question has an accepted answers - jump to answer
This discussion has been closed.
funciona pero tarda mucho alguna sugerencia
This question has an accepted answers - jump to answer
Answers
No estoy seguro de cuál es tu pregunta en realidad.
(English: I'm not sure what your question actually is?).
Allan
slow load 1min o more .
I am doing well the relationships between the tables.
when the table has 4000 records it does not load
Warning: PDOStatement::execute(): MySQL server has gone away in C:\AppServ\www\FullMonitoring\Captura\php\lib\Database\Driver\MysqlQuery.php on line 105
Warning: PDOStatement::execute(): Error reading result set's header in C:\AppServ\www\FullMonitoring\Captura\php\lib\Database\Driver\MysqlQuery.php on line 105
{"fieldErrors":[],"error":"An SQL error occurred: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","data":[],"ipOpts":[],"cancelled":[],"debug":[{"query":"SELECT
IDCliente
as 'IDCliente',fullmonitoring2
.pdate
as 'fullmonitoring2.pdate',fullmonitoring2
.hora
as 'fullmonitoring2.hora',fullmonitoring2
.panelcode
as 'fullmonitoring2.panelcode',fullmonitoring2
.campaign
as 'fullmonitoring2.campaign',fullmonitoring2
.photocode
as 'fullmonitoring2.photocode',fullmonitoring2
.cat
as 'fullmonitoring2.cat' FROMfullmonitoring2
WHEREfullmonitoring2
.status
= :where_0 ","bindings":[{"name":":where_0","value":"1","type":null}]},{"query":"SELECT DISTINCTfullmonitoring2
.campaign
as 'dteditor_pkey',sector
.descrip
as 'descrip' FROM fullmonitoring2 as fullmonitoring2 JOINcampana
ONfullmonitoring2
.campaign
=campana
.descrip
JOINsector
ONsector
.code
=campana
.sector
","bindings":[]},{"query":"SELECT DISTINCTdescrip
as 'descrip',descrip
as 'descrip' FROMsector
","bindings":[]},{"query":"SELECT DISTINCTfullmonitoring2
.campaign
as 'dteditor_pkey',subsector
.descrip
as 'descrip' FROM fullmonitoring2 as fullmonitoring2 JOINcampana
ONfullmonitoring2
.campaign
=campana
.descrip
JOINsubsector
ONsubsector
.code
=campana
.subsector
","bindings":[]},{"query":"SELECT DISTINCTdescrip
as 'descrip',descrip
as 'descrip' FROMsubsector
","bindings":[]},{"query":"SELECT DISTINCTfullmonitoring2
.campaign
as 'dteditor_pkey',marca
.descrip
as 'descrip' FROM fullmonitoring2 as fullmonitoring2 JOINcampana
ONfullmonitoring2
.campaign
=campana
.descrip
JOINmarca
ONmarca
.code
=campana
.marca
","bindings":[]},{"query":"SELECT DISTINCTdescrip
as 'descrip',descrip
as 'descrip' FROMmarca
","bindings":[]},{"query":"SELECT DISTINCTfullmonitoring2
.campaign
as 'dteditor_pkey',producto
.descrip
as 'descrip' FROM fullmonitoring2 as fullmonitoring2 JOINcampana
ONfullmonitoring2
.campaign
=campana
.descrip
JOINproducto
ONproducto
.code
=campana
.producto
","bindings":[]},{"query":"SELECT DISTINCTdescrip
as 'descrip',descrip
as 'descrip' FROMproducto
","bindings":[]},{"query":"SELECT DISTINCTfullmonitoring2
.campaign
as 'dteditor_pkey',tipo
.descrip
as 'descrip' FROM fullmonitoring2 as fullmonitoring2 JOINcampana
ONfullmonitoring2
.campaign
=campana
.descrip
JOINtipo
ONtipo
.code
=campana
.tipo
","bindings":[]},{"query":"SELECT DISTINCTdescrip
as 'descrip',descrip
as 'descrip' FROMtipo
","bindings":[]},{"query":"SELECT DISTINCTfullmonitoring2
.panelcode
as 'dteditor_pkey',catorcena
.contractor
as 'contractor',catorcena
.county
as 'county',catorcena
.address
as 'address',catorcena
.medio
as 'medio',catorcena
.medidas
as 'medidas',catorcena
.Formato
as 'Formato',catorcena
.size
as 'size',catorcena
.precio
as 'precio',catorcena
.longitud
as 'longitud',catorcena
.latitud
as 'latitud',catorcena
.RespPhoto
as 'RespPhoto' FROM fullmonitoring2 as fullmonitoring2 JOINcatorcena
ONcatorcena
.panelcode
=fullmonitoring2
.panelcode
","bindings":[]}]}4000 isn't very make to get an error like that. However, perhaps it would be worth using server-side processing to speed things up.
Allan