Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data binding Pin
half-life25-Jan-09 1:51
half-life25-Jan-09 1:51 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 1:57
mentorWendelius25-Jan-09 1:57 
GeneralRe: Data binding Pin
half-life25-Jan-09 2:11
half-life25-Jan-09 2:11 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 2:23
mentorWendelius25-Jan-09 2:23 
GeneralRe: Data binding Pin
half-life25-Jan-09 2:54
half-life25-Jan-09 2:54 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 2:59
mentorWendelius25-Jan-09 2:59 
QuestionDetecting similar URLs Pin
Meysam Mahfouzi24-Jan-09 21:17
Meysam Mahfouzi24-Jan-09 21:17 
AnswerRe: Detecting similar URLs Pin
Wendelius24-Jan-09 22:14
mentorWendelius24-Jan-09 22:14 
Maysam Mahfouzi wrote:
The problems is, I don't like to manipulate the initial urls


If you don't want to manipulate the URL, doesn't that actually mean you store each URL just as it is (just check that the exact URL isn't found)?

Maysam Mahfouzi wrote:
The first thing that came to my mind as a solution, was to make urls canonical before inserting them into database


One thing is that you could make a canonical version first, store it in parent-table and then store the unmodified url in child-table. Something like
CanonicalUrl (
CanonicalUrlId int,
Url            varchar(500)
)

Url (
UrlIdId      int,
CanonicalUrl int,
Url          varchar(500)
)

If you want you could also build a calculated column to Url table to represent the canonical form.

However all these add extra logic to the data handling. So I'm wondering why do you want to prevent storing similar url's at all. Of course storing exactly the same may not be wise, but that's easily prevented.

The need to optimize rises from a bad design.My articles[^]

QuestionListener Pin
shuahsan24-Jan-09 17:28
shuahsan24-Jan-09 17:28 
AnswerRe: Listener Pin
SeMartens25-Jan-09 1:05
SeMartens25-Jan-09 1:05 
QuestionSNMP Pin
shuahsan24-Jan-09 17:26
shuahsan24-Jan-09 17:26 
QuestionGenerics - casting int/double to <t></t> Pin
devvvy24-Jan-09 17:24
devvvy24-Jan-09 17:24 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:19
professionalDaveyM6924-Jan-09 22:19 
AnswerRe: Generics - casting int/double to Pin
S. Senthil Kumar24-Jan-09 22:54
S. Senthil Kumar24-Jan-09 22:54 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:12
devvvy25-Jan-09 14:12 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:57
professionalDaveyM6924-Jan-09 22:57 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:10
devvvy25-Jan-09 14:10 
GeneralRe: Generics - casting int/double to Pin
DaveyM6926-Jan-09 0:15
professionalDaveyM6926-Jan-09 0:15 
Questiondata gridview problem Pin
bfis10813724-Jan-09 14:01
bfis10813724-Jan-09 14:01 
AnswerRe: data gridview problem Pin
paas25-Jan-09 6:17
paas25-Jan-09 6:17 
QuestionCan any one help please? Pin
Member 284246824-Jan-09 13:52
Member 284246824-Jan-09 13:52 
AnswerRe: Can any one help please? Pin
Not Active24-Jan-09 16:52
mentorNot Active24-Jan-09 16:52 
AnswerRe: Can any one help please? Pin
Christian Graus25-Jan-09 0:44
protectorChristian Graus25-Jan-09 0:44 
AnswerRe: Can any one help please? Pin
Guffa25-Jan-09 2:37
Guffa25-Jan-09 2:37 
GeneralRe: Can any one help please? Pin
NikoTanghe26-Jan-09 3:44
NikoTanghe26-Jan-09 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.