Register | Login
Friday, September 03, 2010
  Search
 Discussion Forums at Locopon's Minimize
 
  Forum / Foros  Modules/Modulos  DSLocalizator  Tablocalization setting causes crazy amount of SQL activity
Previous Previous
 
Next Next
New Post 5/14/2009 3:01 AM
User is offline ktuomi
4 posts
No Ranking


Tablocalization setting causes crazy amount of SQL activity  (Germany)

Hi,

We are running DNN 4.9.0 with the latest DSlocalizator. With the Tablocalization box checked, it immediately causes the SQL Activity Monitor to show that the following is being executed 67,000 (!) times a minute:


SELECT
[TabId],
[LocaleKey],
[TabName],
[TabTitle],
[TabDescription],
[RedirectTo],
[RequireSSL],
[IsVisible],
[DisableLink],
[KeyWords],
[SkinSrc],
[ContainerSrc],
[Url],
[IconFile],
[SqlViewState],
[UseWhiteSpaceRemover],
[AdminSkinSrc],
[AdminContainerSrc],
[LogoFile],
[AdjustSqlSession],
[AntiSessionExpiration],
[AntiSessionExpirationTime]
FROM Delisoft_TabLocalization
WHERE
[TabId] = @TabId
AND [LocaleKey] = @LocaleKey

There are about 250 tabs in the install total, and only around 40 localized variants of the tabs. 7 different lanaguage/locales are present in the install.

Any help would be hugely appreciated!

 

 
New Post 5/16/2009 7:45 PM
User is offline Locopon
1183 posts
1st Level Poster


Re: Tablocalization setting causes crazy amount of SQL activity  (Bolivia)

DSlocalizator queries that table each time it needs the information

There is an option in the host settings (under the module options) to optimize it by using  cache. So the information if stored in the cache (I personally use it)

The only thing you must take into account is that DSLocalizator can't know if a new tab is added by the DNN itself, so I included a simle routine to detect that behavior which is not perfect. You can also reset the cache manually from the module.

Hope it helps


Locopon
 
New Post 5/18/2009 4:28 AM
User is offline ktuomi
4 posts
No Ranking


Re: Tablocalization setting causes crazy amount of SQL activity  (Germany)

Thanks, we have tried with the cache set on and off and it does not really seem to have an effect. Can you say by what mechanism it is cached? Memory, file, viewstate etc.

Is there any means to override the 'new tabs' check, if that is likely the source of all the SQL overhead?

 

 

 
New Post 5/18/2009 12:23 PM
User is offline ktuomi
4 posts
No Ranking


Re: Tablocalization setting causes crazy amount of SQL activity  (Germany)

Actually I would be more than happy to buy the source if I knew that would allow some easy way to improve the performance (not a great programmer here :) . Even with Tab, Portal, and Module Localization turned off, we are still seeing massive amounts of SQL queries in the activity monitor related to the DSLocalizator.   

 
New Post 5/20/2009 10:05 PM
User is offline Locopon
1183 posts
1st Level Poster


Re: Tablocalization setting causes crazy amount of SQL activity  (Bolivia)

I just tried on two DNN instances and the cache worked fine so I don't know what could be happening in your own installation.

I don't make profit from this module so my intention is not to force people to buy the source. Some people buy it because the want to be sure to have the option of custom programing if my site goes off line forever (Hope my site will keep forever working).

The cache option was created when I saw the same behavior your are seeeing now and it works for me a many people using it. The cache is the standard cache object included with DNN

What version of DNN are using?

What version of DSLocalizator?

Is the cache option activated on you host settings (DNN HOST SETTINGS)?

The cache option I was refering in my previous post is the one inside the HOST options in the DSLocalizator module. It is just a siple checkbox. Are you sure that it was activated?


Locopon
 
Previous Previous
 
Next Next
  Forum / Foros  Modules/Modulos  DSLocalizator  Tablocalization setting causes crazy amount of SQL activity