+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / About GC module architecture and db providers

About GC module architecture and db providers

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    20 Oct 2010
    Link to this post
    Hi Team,

    I need some clarifications about GC modules architecture and storing data. When you build a GC Module you use a GenericContent Modules heritage and a data provider build in nolics for the v3. My question is about the Data provider. Sample Telerik.News modules use Telerik.News.Data and implement an Article class creating a Table "sf_news_Article" by nolics to store data. In the fact this sf_news_Article Table are never created and all contents are stored in the sf_GCMetafields table. This can be tested changing the pointer of the News provider to a generic content provider like :

    <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data"/>

    move type to :
    some custom class implementing Telerik.Cms.Engine.Data.Providers.DefaultProvider. No more use of Telerik.News.Data

    This change is not changing the data stored defined in the metafields and confirm that Telerik.News.Data are not used. Only containing override methods that can be usefull for customized modules needing an override base but not for simple modules were metafields can store all needs. Wrong?.
    How to force my News module to use sf_news_Article tables?. Can use a GC Module and store data outside of GCMetafields tables?. These questions are important for a large project that overload the GCMetafields table with >50M of rows and where the performance is critical.

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2010
    Link to this post
    Hi Pierre,

    sf_news_Article is not used. It was used by an old provider of Sitefinity - StaticNewsProvider which we used in versions prior 3.2. Currently the module works with DefaultNewsProvider that inherits from Telerik.Cms.Engine.DefaultProvider. By default you cannot change the tables where content data will be stored. You will need a custom module with your own persistence classes.


    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered