Issue with Replication Latency with computed columns

We have transactional replication enabled and there are 15 tables that are replicated. Out of 15 there are 6 tables where we have computed columns that are persisted. When ever there are several writes, if the actual transaction size is 100 MB on the publisher,
the log reader agent is queuing up almost 30-40 GB of data and the latency is significantly increasing and the transaction log is getting held up by REPLICATION in log_reuse_wait. 
An example schema for a table is
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[address](
[address_id] [int] IDENTITY(1,1) NOT NULL,
[crm_entity_id] [int] NOT NULL,
[address_title] [varchar](600) NOT NULL,
[address1] [varchar](300) NULL,
[address2] [varchar](300) NULL,
[address3] [varchar](300) NULL,
[city] [varchar](300) NULL,
[state_name] [varchar](15) NULL,
[state_non_roman] [varchar](300) NULL,
[postal_code] [varchar](60) NULL,
[district] [varchar](15) NULL,
[country] [varchar](15) NULL,
[country_non_roman] [varchar](150) NULL,
[non_roman] [char](1) NOT NULL,
[is_primary] [char](1) NOT NULL,
[parent_address_id] [int] NULL,
[vat_supply_to] [char](1) NOT NULL,
[created_by] [char](8) NOT NULL,
[created_time] [datetime] NOT NULL,
[modified_by] [char](8) NOT NULL,
[modified_time] [datetime] NOT NULL,
[address_title_uni] AS (case when [address_title] IS NULL then NULL else CONVERT([nvarchar](200),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](600),[address_title],0)),0) end) PERSISTED,
[address1_uni] AS (case when [address1] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address1],0)),0) end) PERSISTED,
[address2_uni] AS (case when [address2] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address2],0)),0) end) PERSISTED,
[address3_uni] AS (case when [address3] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address3],0)),0) end) PERSISTED,
[city_uni] AS (case when [city] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[city],0)),0) end) PERSISTED,
[state_non_roman_uni] AS (case when [state_non_roman] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[state_non_roman],0)),0) end) PERSISTED,
[postal_code_uni] AS (case when [postal_code] IS NULL then NULL else CONVERT([nvarchar](20),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](60),[postal_code],0)),0) end) PERSISTED,
[country_non_roman_uni] AS (case when [country_non_roman] IS NULL then NULL else CONVERT([nvarchar](50),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](150),[country_non_roman],0)),0) end) PERSISTED,
CONSTRAINT [pk_address] PRIMARY KEY CLUSTERED
[address_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [fk_address] FOREIGN KEY([crm_entity_id])
REFERENCES [dbo].[crm_entity] ([crm_entity_id])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [fk_address]
GO
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [fk_address2] FOREIGN KEY([parent_address_id])
REFERENCES [dbo].[address] ([address_id])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [fk_address2]
GO

We have transactional replication enabled and there are 15 tables that are replicated. Out of 15 there are 6 tables where we have computed columns that are persisted. When ever there are several writes, if the actual transaction size is 100 MB on the publisher,
the log reader agent is queuing up almost 30-40 GB of data and the latency is significantly increasing and the transaction log is getting held up by REPLICATION in log_reuse_wait. 
An example schema for a table is
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[address](
[address_id] [int] IDENTITY(1,1) NOT NULL,
[crm_entity_id] [int] NOT NULL,
[address_title] [varchar](600) NOT NULL,
[address1] [varchar](300) NULL,
[address2] [varchar](300) NULL,
[address3] [varchar](300) NULL,
[city] [varchar](300) NULL,
[state_name] [varchar](15) NULL,
[state_non_roman] [varchar](300) NULL,
[postal_code] [varchar](60) NULL,
[district] [varchar](15) NULL,
[country] [varchar](15) NULL,
[country_non_roman] [varchar](150) NULL,
[non_roman] [char](1) NOT NULL,
[is_primary] [char](1) NOT NULL,
[parent_address_id] [int] NULL,
[vat_supply_to] [char](1) NOT NULL,
[created_by] [char](8) NOT NULL,
[created_time] [datetime] NOT NULL,
[modified_by] [char](8) NOT NULL,
[modified_time] [datetime] NOT NULL,
[address_title_uni] AS (case when [address_title] IS NULL then NULL else CONVERT([nvarchar](200),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](600),[address_title],0)),0) end) PERSISTED,
[address1_uni] AS (case when [address1] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address1],0)),0) end) PERSISTED,
[address2_uni] AS (case when [address2] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address2],0)),0) end) PERSISTED,
[address3_uni] AS (case when [address3] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[address3],0)),0) end) PERSISTED,
[city_uni] AS (case when [city] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[city],0)),0) end) PERSISTED,
[state_non_roman_uni] AS (case when [state_non_roman] IS NULL then NULL else CONVERT([nvarchar](100),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](300),[state_non_roman],0)),0) end) PERSISTED,
[postal_code_uni] AS (case when [postal_code] IS NULL then NULL else CONVERT([nvarchar](20),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](60),[postal_code],0)),0) end) PERSISTED,
[country_non_roman_uni] AS (case when [country_non_roman] IS NULL then NULL else CONVERT([nvarchar](50),[dbo].[udfVarBinaryToUTF16](CONVERT([varbinary](150),[country_non_roman],0)),0) end) PERSISTED,
CONSTRAINT [pk_address] PRIMARY KEY CLUSTERED
[address_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [fk_address] FOREIGN KEY([crm_entity_id])
REFERENCES [dbo].[crm_entity] ([crm_entity_id])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [fk_address]
GO
ALTER TABLE [dbo].[address] WITH CHECK ADD CONSTRAINT [fk_address2] FOREIGN KEY([parent_address_id])
REFERENCES [dbo].[address] ([address_id])
GO
ALTER TABLE [dbo].[address] CHECK CONSTRAINT [fk_address2]
GO

Similar Messages

  • How do I fix issue with computer not authorized yet when authorized it indicated already authorized?

    How do I fix issue with computer not authorized yet when I go to I-Tunes to authorized it indicated already authorized?

    I updated to iOS 5.0.1 days ago and didn't receive that notification until just now...
    This time I synced new photos I took yesterday, and it gave me the:
    "iTunes Sync: 54 items could not be synced. See iTunes for more information"
    Perhaps it kicks off when new items get synced.
    I've decided to rent a movie yesterday. Once it gets deleted, I'm curious to see if it jumps to 55 items.

  • ALV Report Output Print issue with more Columns

    Hi Experts ,
                             I'm facing an issue while printing an ALV report which has around 22 columns .If i reduce the column display in the code . I'm able to print but not with 22 columns.. I have used Line-size = 1023 and line-count = 60 , but still the problem persists .
    I also searched in SDN with similar issue but managed to get only the above solution which is not working .
    Any other ways of doing it , kindly suggest .
    Many Thanks,
    Kumaran

    175 characters is the maximum number of characters that can be generated in a line of a spool (next characters are stored on the next line of the spool). When the spool is printed, these line feeds are respected.
    What is possible (I don't know) is that ALV chooses its own format type instead of the format type you have chosen when you run your program in background. To check that, just look at spool attributes (SP01).

  • Re : Issue with the column display in Bex reports

    Hello Gurus,
    I have an issue with the reports in Bex, this is a bit confusing scenario I would try to explain in more details. A query was already built for monthly Report in Sales and Billing for which the variable were  Calender month/year range 1 (mandatory), range 2 range 3 range 4. These 4 variable were created and moved to column rows in query.
    Later the user wanted the copy of same report but he wanted the variables to be Calender date range 1 (mandatory), range 2, range 3 , range 4. I have created them with 0calenderday as reference and moved to the columns.
    for the monthly report text variables were already existing for the Calender month/ year, but for the daily report text variable were not existing for Dates. I have created a text variable for the date in the following way processing by
    " replacement path" and reference characteristic as 0calday and in the replacement path tab.. in replace variable the selection is info object, the next option Replace with " External charactersitic value key " .
    By creating this text variable the dates were being displayed in the colum header like 11/01/2013 - 11/30/2013 which satisfies the requirement.
    But the user wanted to see the report same like monthly report when the mandatory variable Calender year/ month is selected, the rest of the columns range 2, range 3, range 4 are displayed as unassigned in the report. but coming back to the daily report when the user is giving the Calender date rage 1, he is finding that Calender date range 2, range 3, range 4  are also being displayed with values. He want to see the Calender date range 2,3,4 as unassigned in the report just like monthly. Please find the images attached.
    As Calender month/ year is predefined, if the calender range values are not given it would show up as not assigned default. I have created a separate text variable for Calender day, I believe that could be the reason rest of the columns are not showing up as unassigned. The user want to see them as unassigned like monthly report columns.
    I tried different ways changing the text variables but I could not change the display of the columns in Calender date report by the option - replace with ----> External characteristic value key, key, label. when I chose the option external characteristic value then the date was showing up in the text of the column when report is run ( Please find the image for the reference in the attachment ). . I request you to help me out in this. Please find the images of the variables and output below.

    Anshu,
    Thank you very much for above code I  made minor changes to the code that finally worked. I created 4 different text variables needed for Calender date range 1, 2 ,3 ,4. Please find the code below for the text variable that worked in the system
    WHEN 'ZTEXT_CAL1'.
       READ TABLE I_T_VAR_RANGE INTO loc_var_range
       WITH KEY VNAM = 'ZCALDATE1'.
        IF loc_var_range-LOW = '#'.
          dt_low = 'Not Assigned'.
          dt_high = 'Not Assigned'.
          CONCATENATE dt_low '-' dt_high INTO l_s_range-low.
        ELSE.
          CONCATENATE loc_var_range-low+4(2) '/' loc_var_range-low+6(2) '/' loc_var_range-low+0(4) into dt_low.
          CONCATENATE loc_var_range-high+4(2) '/' loc_var_range-high+6(2) '/' loc_var_range-high+0(4) into dt_high.
          CONCATENATE dt_low '-' dt_high INTO l_s_range-low.
        ENDIF.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.

  • RH 10 issue with Fixed Column width

    Hi,
    Is anybody else having issues with setting a fix width for a column in a table?  In RH v.10 the "fixed widths" are not staying "fixed" as I have them manually set.
    I've recently been upgraded from Robohelp (html) v.8 to v.10. 
    In a "Design" view in v.8.0 when I set a column width from the right click menu (AutoFit > Fixed Column Width), the width of the column would be whatever width I'd set it to.  Now, in v.10, the width is whatever width the Robohelp window is set to!  For example, I have a large monitor and I've got Robohelp open in Full Screen mode, the table (a 1-cell table) gets set to the width of the window rather than the particular width I want to use!  I want the cell to be a particular width (much less than my monitor or the open window's width).  Can someone please tell me what I am doing wrong?
    OS=Windows7.
    Browser=IE9
    Robohelp is installed locally (it is not being run over a network).
    Thanks!
    P.S. So far this is the only issue I've had after upgrading from RH v.8 to RH v.10.

    Hi William,
    In a "Design" view in v.10, the table (which is 1 cell) looks like a big rectangular box.  I've turned off the border (cell or table border), so the border appears in gray. 
    Put mouse focus on this 1-cell table, then grab an edge with the mouse. 
    Move the table inward to make the column narrower in the view.
    Then from the right click menu, choose AutoFit > Fixed Column Width.
    Voilá - the width is back to the width of the display window.
    Did that make sense to you?   Thank you for your help and ideas.
    Cheers,
    Julia

  • TenFourFox issues with computer date/time

    I had an interesting problem tonight which I fixed and can replicate whenever I feel like. On my old Powermac I run TenFourFox which is what I assume most are doing.
    The battery in my Powermac needs to be replaced, but I almost never unplug the computer so I'm never worried about the computers time, as it is always right.
    Tonight I had to unplug it and when I started it up I got the "wrong time" notice but I mostly ignorred it. Everything worked well and then I tried using TenFourFox...it was an utter disaster.
    It was slow, unreponsive and overall unuseable to say the least. After a lot of thinking I set the time right and it worked again, as it had before.
    So after this I set the time wrong again and sure enough, TenFourFox before unuseable.
    Does anyone know if there are any known issues with TenFourFoxx in the department? Could someone else try this? (Just set your clock back a few days and try to open TenFourFox)
    I'm curious if I've found an issue with the app because I know for a fact ti's not hardware issues.

    Running v 5.0 here, no problem in TFF changing the Time backwards, but Safari wouldn't work here until I cleared the Caches.
    Some Servers are Date/Time critical & consider anything trying to connect reporting the Time off by more than a minute will refuse connections.

  • Issue with computer crashing and saying i have no battery power!

    I have been having an issue when the power cord is not connected and my macbook pro w/ retina has been powering off and when i press the power button it says that i have no battery. When i plug the computer in it will turn on fine, then the battery says that there is battery power still. I think it may be a graphics card issue but I'm not sure. THIS HAS ONLY BEEN GOING ON SINCE I HAVE UPDATED TO YOSEMITE! Why is this issue happening and what can i do to fix it??

    Hi tyler260,
    I'm sorry to hear you are having issues with the Yosemite update. If you are having unusual power or battery issues on your MacBook Pro since the install, you may want to try resetting the System Management Controller (SMC), as outlined in the following article:
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    If you are still having issues after the SMC reset, you may also find this article helpful:
    Mac notebooks: All about batteries - Apple Support
    Regards,
    - Brenden

  • Anybody have any issues with computer not coming on or charging

    anybody have an issue with a macbook pro not turning on or charging

    Try opening a copy of the Typewriter title in Motion and see if you can identify the problem. Remember that all of these effects, generators and such are motion files and we have full access to their innards. You can also publish any parameters to the Rig that you would like to have access to within FCPx,
    The text generators have always been a bit finicky in Motion. Sometimes just rebuilding that part of a Motion project can fix the problem.

  • ISSUE WITH DATE COLUMN

    Hi All,
    I have a table(Revenues) and a view(locations) using which I have created a crosstab report
    which has a date as a  column in the table and rows contain Region and location and Summary column has the revenues.
    Due to some issues I have again created another view which took data from both these (view and table) and I replaced the view in crystal report and build the cross tab.
    Now I am unable to change the date time format ( Cross tab column) in the new view as it shows datatype as string.
    I need to convert the date i.e this string in form ( yyyy/dd/mm hrs:minutes:sec ) to  (mmm - yy)
    How can i Acheive this.??
    Thank you,
    Nani

    Hi
    I have solved that Issue By making changes in the view.
    But now I am struck with some thing else...
    Here Is the Scenario.
    Revenues Table has Three Colums ( Date, Revenue, Site _CODE)    >>>>  It has 650 rows
    Locations VW has these columns ( Site_Code, site_DESC, Region,...................)  It has 65 Rows.
    For a cross tab I need Region and Site_Desc as Rows and Date as a Column And revenue as Summary column ( for month)
    I was unable to retrieve all the Site Desc for a region in crystal reports ( Also tried outer joins in LInks tab)
    So i have created a new view from both of the above which has ( date,Revenue, site_code,site_desc,Region) and updated it in the Data source  location of crystal reports.
    I am getting all the data from past 5 years (which has 65 rows in the crosstab)
    But when I am trying to filter it to 2010 data  It gives only 24rows of data ( I am loosing site desc in the regions.)
    I need all the site Desc in table whether they have a revenue or not.
    How can I do this.
    I have tried applying the select expert but got no luck.
    Your assistance will be appreciated.
    Thank YOu.

  • SPD 2010 Workflow: Issue with Associated Column

    We have a SP2010 Workflow that is attached to a Content Type and mapped in the Retention Policy settings. This workflow uses a DateTime column which is used within the Workflow and hence the DateTime column is used within the Workflow as an Associated Column.
    The issue being faced is that when we manually run the workflow, it runs successfully and is able to get the value of the associated column. When the Retention Timer job starts the workflow, we find that the Workflow is not able to get the value of the Associated
    Column (this we realized by logging messages to a List).
    Any pointers/guidance on how to overcome this issue is much appreciated.
    Blog: http://dotnetupdate.blogspot.com |

    Thanks for the suggestions. 
    From the debugging there is no issue from a functionality perspective or the date calculations. It works perfectly well when we manually run the workflow or if I set the workflow to start when an item is uploaded.
    The behavior is different when the same workflow is getting triggered from a Retention Policy as a Stage. Is this something to do with access permissions or security context when a SPD 2010 Workflow gets triggered by a Timer Job/Retention Policy? 
    Regards,
    Vikram
    Blog: http://dotnetupdate.blogspot.com |

  • Issue with Faux Column solution for 2 Column website

    Hi - I hope you can help me
    I have come across a problem which I haven't seen before using the Faux Column method in DW CS5 - there is a white line appearing down the right side of my sidebar which I can only imagine is caused by the repeated background image I have set in the body tag.
    The code I have added to the body tag in my css style sheet is;
    background: #FFF url(../images/faux_background.jpg) repeat-y 50% 0;
    Website where the issue is occuring is www.nurtureearlylearning.co.nz.   The issue so far is appearing in Chrome, Firefox and IE.   IN Chrome and FIrefox, it will appear and disappear as you adjust the screen size but there is no consitency with what size the browser is.
    Please keep in mind that website is not finished yet - just an issue that i'd like to resolve so far
    Any help would be appreciated - thanks!
    Clint

    I'm using Firefox and I don't see a white line.  Not entirely sure why you need a background image at all for this layout  since the entire page is white.
    See a live example of Faux Columns
    http://alt-web.com/TEMPLATES/3-col-white-gray.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Issue with row/column text lengths in report painter

    Hi Gurus,
    I have created a report painter report with formatting of the row/column length text as medium, but for one FS item/GL Account the report when executed still picks up only the short text length. I am not sure how this can be resolved.
    Any ideas is appreciated.
    Regards
    Satish

    Applied OSS Note 360096 and it worked. Thanks for all your help.

  • Has anyone had issues with Computer Village in Rapid City?

    They are the only game in town and I have not had good experiences with them.  One more visit to them after having them fix some else previously 4 months later and I will be going back to PC.

    Hmmm, yelp hasn't had any ratings on them...
    http://www.yelp.com/biz/computer-village-rapid-city
    Bundle has a strange ratung system...
    http://www.bundle.com/merchant/detail/computer-village-rapid-city-sd-19262054/
    BBB gives them an A rating...
    http://www.bbb.org/nebraska/business-reviews/not-elsewhere-classified/computer-v illage-in-rapid-city-sd-113000697
    What problems have you had exactly?

  • Appraisal Template - Issue with New Column addition.

    We have added one column u201CPriority %u201D which replaced an existing field (column) in one of the appraisal templates.
    When the user selects a value from the drop down and saves the template, it is not getting reflected in the portal.  Also the same isnu2019t getting updated in the backend DB tables (as seen from PHAP_ADMIN_PA). Upon displaying the template, the first available value in the drop down is shown by default instead of the selected value.
    As per our understanding the entire field values are read from standard function Module u2018HRHAP_DOCUMENT_CHANGE_STATUSu2019 into corresponding internal table t_body_elements.
    But the value (Row X Column) for that particular column is not seen in the structure.
    Please give inputs as to why the changed % value is not being saved and shown in the template.
    The column is maintained in the template like the other columns and the value range is also maintained in the u2018Edit Appraisal Scalesu2019 in SPRO.
    Thanks
    RK

    Hello Siddharth,
    Thanks for you reply. Still the same issue. Following are the config I did till now:
    In the PCD I created a new business object (SWF_WIOBN), an operation linked to the object (NAVIGATE).
    I did create an iView (powl) in the custom folder, I integrated the operation within iView. I created a page that contains the iView.
    In the properties of the iView I gave:
    Application Name: HAP_MAIN_DOCUMENT.
    Launch in New Window: "Display in separate Headerless Portal Window".
    System: SAP_ECC_HumanResources
    I added the required entries in tables:
    IBO_C_WF_TTAS
    IBO_C_WF_ACS
    IBO_V_WF_TAC
    IBO_V_WF_TTAC
    etc...
    I saw in the code of linked feeder class: CL_IBO_INBOX_FEEDER_WI  that it's checking something called "Launch_Editor".. Is it a property that we can set somewhere?
    Following are the parameters retrieved by system:
    BO_NAME       =  SWF_WIOBN
    BO_OP_NAME = NAVIGATE
    LAUNCHER_PARAMETERS ->  empty.??
    BO_RESOLVE_MODE = USER_SET_OF_ROLES
    LAUNCH_EDITOR  empty where must be set?
    At the end I still get the error:
    There is no iView available for system "": object "SWF_WIOBN". For more information, contact your administrator.
    Any advice,
    Thanks in advance

  • Issue with GetSchema("Columns") of Oracle driver from ODBC DSN

    Hi,
    I have installed Oracle Express Edition and have created a windows System DSN for Oracle driver 'Oracle in XE'. From my .Net application using ODBC connection string, I am trying get the schema of columns of a particular table in Oracle DB and the sample code is given below.
    dtSchema = odbcConn.GetSchema("Columns", new string[4] { odbcConn.Database, null, strTableName, null });
    Does Oracle driver accept the restrictions to be passes as paramenter to GetSchema() method?
    Please help me ASAP.
    Regards,
    Sasi Rekha.

    Even If create table manually in the Oracle Database using varchar2 but still when i copy the data query mysql database it shows spaces in the value column.

Maybe you are looking for