Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Conexión con bases de datos

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 18-09-2007
Avatar de casacham
casacham casacham is offline
Miembro
 
Registrado: abr 2006
Ubicación: Cordoba->Argentina. Arboleas->Almeria->España
Posts: 184
Poder: 19
casacham Va por buen camino
Cool Objetos no tradicionales

Hola a toda la gente del foro.
Quisiera saber si existen otros objetos que no sean ADO y de BDE para conectarse a los ficheros .mdb (bases de datoas creadas con acces)?
Por ejemplo TADOTable carga el juego de datos completamente en la memoria, y por mas que setee MaxRecords a un numero diferente de 0 y CacheSize distinto de 0 lo sigue haciendo.
Adjunto texto de ayuda para aclarar de que estoy hablando


Código Delphi [-]
Set CacheSize to control how many rows the ADO dataset’s provider keeps cached in its buffer and how many to retrieve at one time into local memory. Default value of CacheSize is 1 and the minimum allowed value is 1.
For example, if CacheSize is set to 20, when the dataset is first activated the associated provider retrieves the first 20 rows into local memory. As the row pointer is moved through this recordset, the provider retrieves the data from the local memory buffer. If the dataset’s row pointer moves beyond the last of these 20 buffered rows, the provider retrieves the next 20.
CacheSize represents the maximum number of rows to retrieve at one time. If the number of rows remaining to be retrieved is less than CacheSize, the remaining rows are retrieved and no exception is raised. The number of rows that can be returned by the provider can be less than all of the rows if the ADO dataset component
’s MaxRecords property is set to other than the default (all rows).

Note: The rows retrieved from the cache do not reflect any changes made by other concurrent users of the data.
Responder Con Cita
  #2  
Antiguo 18-09-2007
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 18.286
Poder: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por casacham Ver Mensaje
Por ejemplo TADOTable carga el juego de datos completamente en la memoria
Para modificar ese comportamiento puedes modificar el valor de la propiedad CursorLocation. Con eso conseguirás que se abra un cursor y se carguen bloques de registros a medida que se vayan necesitando en lugar de todos inicialmente.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita
  #3  
Antiguo 02-10-2007
Avatar de casacham
casacham casacham is offline
Miembro
 
Registrado: abr 2006
Ubicación: Cordoba->Argentina. Arboleas->Almeria->España
Posts: 184
Poder: 19
casacham Va por buen camino
Cool Que valor deberia tomar esa propiedad?

Bueno, creo que el titulo lo dice todo. Antes que nada gracias neftali por tomarte la molestia de responder. Que valor deberia tomar CursorLocation?
Responder Con Cita
  #4  
Antiguo 02-10-2007
Avatar de eduarcol
[eduarcol] eduarcol is offline
Miembro Premium
 
Registrado: ago 2003
Ubicación: En los estados Zulia y Merida de Venezuela
Posts: 4.151
Poder: 25
eduarcol Va por buen camino
Cita:
Empezado por casacham Ver Mensaje
Bueno, creo que el titulo lo dice todo. Antes que nada gracias neftali por tomarte la molestia de responder. Que valor deberia tomar CursorLocation?
Deberia ser server side, mira la diferencia segun la ayuda de delphi

Cita:
A client-side cursor offers more flexibility. All data is retrieved to the local machine and then operated on there, allowing operations not normally supported by servers like sorting and resorting the data and additional filtering. SQL statements are executed at the server, so for statements that restrict the result set with a WHERE clause, only the reduced result set is retrieved to a local cursor.

A server-side cursor offers less flexibility, but may be more advantageous (or necessary) for large result sets. Using a server-side cursor becomes necessary when the sheer size of a result set exceeds the available disk space that would be needed to create the client-side cursor. Also, many servers only support unidirectional cursors. This would preclude moving the record pointer in the dataset backward (even one record) through the result set.
__________________
...Yo naci en esta ribera del arauca vibr@d0r
Soy hermano de la espuma,
de la garza, de la rosa y del sol...
Viva Venezuela
Responder Con Cita
  #5  
Antiguo 06-10-2007
Avatar de casacham
casacham casacham is offline
Miembro
 
Registrado: abr 2006
Ubicación: Cordoba->Argentina. Arboleas->Almeria->España
Posts: 184
Poder: 19
casacham Va por buen camino
Cool Version de delphi

Hola eduarcol, y gracias por tu mensaje. De hecho he probado con server side cursor, pero no me permite mantener la relacion master-detail. Me parece que tal vez la solucion sea no usar mas TADOTable, sino TADOQuery, colocar alli ese tipo de cursor y linkar los juegos de datos (DataSets) por SQL. Eso da un poco mas de trabajo, pero voy a intentarlo. Desde ya gracias a todos por responder
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Introducir Objetos en una DLL Delar Varios 0 10-10-2006 19:39:07
Instacias de los objetos en asp.net karocs .NET 1 30-09-2006 08:38:30
Objetos en Oracle Nacho86 Oracle 2 04-09-2006 03:04:56
uso de objetos en CORBA zuriel_zrf Providers 0 11-12-2003 07:20:14
Objetos jfontane Varios 1 04-07-2003 15:39:04


La franja horaria es GMT +2. Ahora son las 00:34:11.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi