Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Some advanced querying by country...Some advanced querying by country...
Previous
 
Next
New Post
4/19/2009 3:10 PM
 

Sebastian Leupold wrote

it depends on your needs, which reports you try - in some cases you will need to join on the database to get suitable results.

In this case I would first retrieve ID of the Profile Property and query by sth like SELECT FROM users INNER JOIN UserProfile WHERE propertyID = ", which should be fast enough. (of course, covered in a stored procedure for security).

I'm afraid "should be fast enough" is the problem. Because that column is not indexed it's already slow - as shown by my analysis using MS Query Analyzer. The tools are clearly telling me that currently the SQL has to do a scan not a seek of the data - i.e. it has to read every country entry in the table, rather than using an index to seek to the required locations.

I definitely need to change something at the database layer - it is a problem of data indexing.

(I did try to answer this a day ago - but the forum was broken!)

 
New Post
4/19/2009 7:36 PM
 

 you might want to try adding an optimized index for your needs, however you will need to review this change on every portal upgrade.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/20/2009 4:18 AM
 

Thanks again.

Yes - I will need to add something - and because the propertyValue column is so big, it can't be just as simple a change as a simple index - SQLS can't index the current column.

I'll keep looking at the ideas I already posted - but am happy to consider others if anyone has an idea :)

 

 
New Post
4/20/2009 4:25 AM
 

The LocationSearch feature is a user control view within the Smart-Thinker UserProfile module.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Some advanced querying by country...Some advanced querying by country...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out