Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variable
Message
De
16/03/2011 00:42:46
 
 
À
16/03/2011 00:23:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01503562
Message ID:
01503827
Vues:
43
Thanks for reply.
how to use singular connection for all views?

My form has three remote views but in MySQL, it costs seven connections.
the other form has four views, but takes 9 connections.

I wish to reduce those connections.



>>I'm using VFP with MySQL database.
>>and I figured out it that every (remote) view will cost MySQL one connection.
>>
>something totally different from your OP.
>Using a singular connection for all views on each backend is good practice.
>
>>That why I tried to convert some views to public variables in order to save the resources.
>
>views are cursors - moving the data into memvars is often counterproductive.
>If you need it, try to work via a pattern similar to ActiveRecord.
>I personally prefer scattering to a special .oData on a biz object or a CA in this case.
>
>HTH
>
>thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform