- adidas
- Nombre de messages : 37
Age : 51
Ville : L'Épiphanie
Date d'inscription : 14/07/2007
Performances de la table attachement
Jeu 7 Aoû 2008 - 14:52
Bonjour,
J'ai un problème de performance lors que je tente d'accéder à l'objet AcoSDK.Attachment. une simple requête peut prendre jusqu'à 15 secondes, ce qui peut être très long lors qu'on doit afficher une page web avec 15 ou 20 objets.
Quelqu'un a t-il déjà trouvé une solution?
Voici le code source:
AcoSDK.Attachment att = new AcoSDK.Attachment();
foreach (var sp in special)
{
AcoSDK.Product005 Prod = new AcoSDK.Product005();
Prod.BlankCard();
Prod.GetCard((int)sp.CARDPOS);
att.GetFileInfo(AcoSDK.AttachType.Att_Product, (int)(sp.CARDPOS));
System.IO.FileInfo fi = new System.IO.FileInfo(att.FileName);
FileList+= fi.Name + ";";
}
J'ai un problème de performance lors que je tente d'accéder à l'objet AcoSDK.Attachment. une simple requête peut prendre jusqu'à 15 secondes, ce qui peut être très long lors qu'on doit afficher une page web avec 15 ou 20 objets.
Quelqu'un a t-il déjà trouvé une solution?
Voici le code source:
AcoSDK.Attachment att = new AcoSDK.Attachment();
foreach (var sp in special)
{
AcoSDK.Product005 Prod = new AcoSDK.Product005();
Prod.BlankCard();
Prod.GetCard((int)sp.CARDPOS);
att.GetFileInfo(AcoSDK.AttachType.Att_Product, (int)(sp.CARDPOS));
System.IO.FileInfo fi = new System.IO.FileInfo(att.FileName);
FileList+= fi.Name + ";";
}
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum