ASP.NET constructed in customer profile vs. old design customer class/tables

I am seeking advice pertaining to the most effective technique around making use of the Profile attribute in ASP.NET.

Just how do you determine what should be maintained in the integrated customer Profile, or if you should create your very own data source table and also add a column for the wanted areas? As an example, a customer has a postal code, should I conserve the postal code in my very own table, or should I add it to the web.config xml profile and also accessibility it using the customer profile ASP.NET device?

The pros/cons I can consider now are that given that I do not recognize the profile quite possibly (it is a little a Matrix now), I possibly can do whatever I desire if I go the table course (e.g., SQL to get all the users in the very same postal code as the existing customer). I do not recognize if I can do the very same if I make use of the ASP.NET profile.

0
2019-05-04 04:33:38
Source Share
Answers: 3

Ive just constructed 2 applications that made use of the profile carrier. Ever since I have actually steered clear of from utilizing it. For both of the applications I utilized it to store details concerning the customer such as their firm name, address and also contact number.

This functioned penalty till our customer intended to have the ability to locate a customer by among these areas. Searching entailed knotting via every customers profile and also contrasting the details to the search standards. As the customer base expanded the search time came to be undesirable to our customer. The only remedy was to create a table to store the customers details. Look rate was raised greatly.

I would certainly advise saving this sort of details in its very own table.

0
2019-05-12 14:26:25
Source

In my experience its ideal to maintain an the details in the profile to a bare minimum, just placed the basics in there that are straight required for verification. Various other details such as addresses need to be conserved in your very own data source by your very own application reasoning, this strategy is extra extensible and also maintainable.

0
2019-05-07 20:33:08
Source

I assume that relies on the amount of areas you require. To my expertise, Profiles are basically a lengthy string that obtains split at the offered area dimensions, which suggests that they do not range quite possibly if you have several areas and also customers.

On the various other hand, they are constructed in, so it's a very easy and also standard means, which suggests there is not a large understanding contour and also you can utilize it in future applications too without requiring to fine-tune it to a new table framework.

Moving your very own point permits you to place it in an effectively stabilized data source, which substantially boosts efficiency, yet you need to write virtually all the profile handling code on your own.

Edit : Also, Profiles are not cached, so every accessibility to a profile mosts likely to the data source first (it's after that cached for that demand, yet the next demand will certainly get it from the data source once more )

If you're thinking of creating your very own point, possibly a custom Profile Provider offers you the most effective of both globes - smooth assimilation, yet the personalized things you intend to do.

0
2019-05-07 20:29:36
Source