Re: Out of memory during "large" request
- From: juancarg@xxxxxxxx
- Date: Tue, 21 Nov 2006 09:27:11 +0100
At 09:25 21/11/2006, Juan Carlos García wrote:
At 00:16 21/11/2006, you wrote:
post the relevant code.....including how you are going about
preparing, executing and fetching the data.
This is my programs's code:
$consulta=qq{
SELECT vista.anio_publicacion,vista.autores_lista_precios,
vista.eci_cdu,vista.eci_bisac,vista.eci_desc_ruta,vista.lprecios_desc_ruta,
vista.codigo_comercial,vista.codigo_proyecto,vista.codigo_barras,
vista.comentario_lista_precios,
vista.desc_sello_ruta_img,vista.edicion,vista.formato_encuad_paginas,
vista.indice,vista.isbn,vista.iva,vista.marcar_pa_nov_rdc,vista.obrcod,
TRIM(TO_CHAR(pw_utilidades_precios.f_precio_con_iva_prd(vista.obrcod, TO_DATE('15/11/2006')),'990D99')) precio_euros,
TRIM(TO_CHAR(pw_utilidades_precios.f_precio_sin_iva_prd(vista.obrcod, TO_DATE('15/11/2006')),'990D99')) precio_euros_sin_iva,
vista.resena,vista.resena_catalogo,vista.id_sello_editorial_web,
vista.subtitulo,vista.titulo,vista.titulo_str,vista.titulo_indice,vista.titulo_indice_str,vista.orden_c,
vista.peso,vista.complementos
FROM extr_lprecios_v vista $tabla_cl_productos
WHERE vista.id_sello_editorial_web = '$id_sello_editorial_web' $cad_query_colecciones $cad_query_listar
ORDER BY $ordenacion};
$cur21= $dbh->prepare($consulta);
$cur21->execute();
while (($anio_publicacion,$autores_lista_precios,
$eci_cdu,$eci_bisac,$eci_desc_ruta,$lprecios_desc_ruta,
$codigo_comercial,$codigo_proyecto,$codigo_ean,
$comentario_lista_precios,
$desc_sello_ruta_img,$edicion,$formato_encuad_paginas,
$indice,$isbn,$iva,$marcar_pa_nov_rdc,$obrcod,
$precio_euros,$precio_euros_sin_iva,
$resena,$resena_catalogo,$id_sello_mostrar,
$subtitulo,$titulo,$titulo_str,$titulo_indice,$titulo_indice_str,$orden_c,
$peso,$complementos)=$cur21->fetchrow)
where
$consulta is a variable to contain the query.
extr_lprecios_v is the view from where I obtain the information.
$tabla_cl_productos is a variable where I put a table name. My program build the query dynamically and sometimes I need this table.
$cad_query_colecciones and $cad_query_listar contain the conditions for the JOIN between the view and the table in $tabla_cl_productos and some conditions to filter the regs in this last table.
$ordenacion contains the conditions for ORDER BY sentence.
Thats all. I hope that this information was useful.
Thanks again.
- Follow-Ups:
- Re: Out of memory during "large" request
- From: Jeffrey Seger
- Re: Out of memory during "large" request
- References:
- Out of memory during "large" request
- From: juancarg
- Out of memory during "large" request
- Prev by Date: Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Next by Date: Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Previous by thread: Out of memory during "large" request
- Next by thread: Re: Out of memory during "large" request
- Index(es):