FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Procesar 8000 registros
Amigos, tengo una pequeña duda, tengo 3 tablas en SQL que son una de Datos, Cabecera y Detalle basicamente; creo un objeto TADOQuery y realizo una consulta, a continuación tengo que realizar un proceso de facturacion de acuerdo a los datos, y para ello tengo 5 procedimientos que realizan el proceso de facturación, ellos son los siguientes:
1.- Factura consumo 2.- Factura beneficios 3.- Factura créditos 4.- Factura cobros indefinidos 5.- Inserta la Factura a la tabla Todo me funciona 100 puntos, el unico problema es que tarda 1 hora y solo esta realizando los procedimientos 1, 2 y 5; imaginense si hago los otros dos mas. Como utilizo un DataModule para las tablas tenia un par de tablas con parametros de facturacion y accedia a ellas en la facturacion de cada registro, al ver eso cree un type record con los parametros de la facturacion una sola vez y lo utilizo dicho type record y ya no las tablas de parametros, pero lastimosamente solo me bajo 10 min de tiempo a lo mucho. Entonces mi consulta es. ¿Existe alguna forma de agilizar mi proceso de facturación, se me ocurre quizas utilizando alguna estructura de datos o quizas haciendolo en el mismo SQL con procedimientos almacenados o alguien sabe de alguna forma en que lo pueda hacer mas rapido? Gracias de antemano. |
#2
|
||||
|
||||
8000 Registros no son muchos, tendrás que describir con más detalle que es lo que haces y poner el código y componentes que utilizas para ver si alguien puede ayudarte.
Un Saludo.
__________________
Guía de Estilo de los Foros Cita:
|
#3
|
|||
|
|||
Aqui va algo del codigo
ESE FACTURA LAS LEYES BASICAMENTE ESE ES EL CODIGO DE LOS DOS PROCESOS MENCIONADOS ANTERIORMENTE, SI ALGUIEN TUVIERA UNA OBSERVACION AGRADECERIA QUE ME LA HICIERAN SABER Última edición por marcoszorrilla fecha: 18-05-2010 a las 06:52:22. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Procesar archivos inmediatamente despues de su copiado o transferencia. | fredycc | OOP | 3 | 17-02-2009 20:30:53 |
procesar mensajes mientras se abre una query. | potlanos | MS SQL Server | 3 | 28-11-2008 12:05:46 |
Impresion en 132 columnas matricial - epson DFX-8000 | ELENAHE | Impresión | 0 | 06-10-2008 07:58:23 |
Como procesar la excepción de violación de clave? | ReyQ | MS SQL Server | 3 | 16-09-2005 10:15:55 |
Procesar un Txt delimitado con TAB antes de Importar a un Database | dago_Ariza | Conexión con bases de datos | 3 | 13-05-2004 09:36:30 |
|