What's the best way to handle the growth of the mdm.tblTransaction table?

Can anyone suggest a good way to handle the growth of the mdm.tblTransaction table? This table logs all the MDS transactions and the history of the data residing in it is required for auditing purposes. Hence we can't delete this data. I'm looking for options
on how we can maitain this table ongoing. It is going to perform badly eventually. We currently have 15 Million transactions in this table.
What options can we look at?

In the vnext sql server, MDS will support cleaning based on log retention policy.
In the sql2014/sql2012, you have to clean up the table manually.
An sample sproc that can be reused is attached below.
==============================================================================
Copyright (c) Microsoft Corporation. All Rights Reserved.
==============================================================================
SELECT * FROM mdm.tbl_7_TR where LastChgDTM < '2014-10-22';
EXEC mdm.udpLogCLeanup 7, '2014-10-22';
SELECT * FROM mdm.tbl_7_TR where LastChgDTM < '2014-10-22';
CREATE PROCEDURE mdm.udpTransactionsCleanup
@Model_ID INT,
@CleanupOlderThanDate DATE
WITH EXECUTE AS N'mds_schema_user' -- Execute as a user that has permission to select on [tblUserGroupAssignment], [tblBRBusinessRule], [udfSecurityUserBusinessRuleList]
AS BEGIN
SET NOCOUNT ON
DECLARE
@SQL NVARCHAR(MAX)
--Annotation table names
,@TransactionTableName sysname
,@AnnotationTableName sysname;
SET @TransactionTableName = 'tblTransaction';
SET @AnnotationTableName = 'tblTransactionAnnotation';
BEGIN TRY
--Delete all Annotations on transactions being deleted issues
SET @SQL = N'
DELETE [mdm].' + QUOTENAME(@AnnotationTableName) + N'
FROM [mdm].' + QUOTENAME(@AnnotationTableName) + N' as tannt
JOIN [mdm].'+ QUOTENAME(@TransactionTableName) + N' as txn ON tannt.Transaction_ID = txn.ID
JOIN [mdm].[tblModelVersion] as tmv ON txn.Version_ID = tmv.ID
WHERE tmv.Model_ID= @Model_ID AND txn.LastChgDTM <= @CleanupOlderThanDate
EXEC sp_executesql @SQL, N'@Model_ID INT, @CleanupOlderThanDate DATE', @Model_ID, @CleanupOlderThanDate;
--Delete all transactions older than the specified date
SET @SQL = N'
DELETE [mdm].' + QUOTENAME(@TransactionTableName) + N'
FROM [mdm].' + QUOTENAME(@TransactionTableName) + N' txn
JOIN [mdm].[tblModelVersion] tmv ON (txn.Version_ID = tmv.ID)
WHERE tmv.Model_ID = @Model_ID AND txn.LastChgDTM <= @CleanupOlderThanDate
EXEC sp_executesql @SQL, N'@Model_ID INT, @CleanupOlderThanDate DATE', @Model_ID, @CleanupOlderThanDate;
RETURN(0);
END TRY
--Compensate as necessary
BEGIN CATCH
-- Get error info
DECLARE
@ErrorMessage NVARCHAR(4000),
@ErrorSeverity INT,
@ErrorState INT;
EXEC mdm.udpGetErrorInfo
@ErrorMessage = @ErrorMessage OUTPUT,
@ErrorSeverity = @ErrorSeverity OUTPUT,
@ErrorState = @ErrorState OUTPUT;
RAISERROR(@ErrorMessage, @ErrorSeverity, @ErrorState);
--On error, return NULL results
--SELECT @Return_ID = NULL;
RETURN(1);
END CATCH;
SET NOCOUNT OFF
END --proc
GO

Similar Messages

  • (workflow question) - What is the best way to handle audio in a large Premiere project?

    Hey all,
    This might probably be suitable for any version of Premiere, but just in case, I use CS4 (Master Collection)
    I am wrestling in my brain about the best way to handle audio in my project to cut down on the time I am working on it.
    This project I just finished was a 10 minute video for a customer shot on miniDV (HVX-200) cut down from 3 hours of tape.
    I edited my whole project down to what looked good, and then I decided I needed to clean up all the Audio using Soundbooth, So I had to go in clip by clip, using the Edit in SoundBooth --> Render and Replace method on every clip. I couldn't find a way to batch edit any audio in Soundbooth.
    For every clip, I performed similar actions---
    1) both tracks of audio were recorded with 2 different microphones (2 mono tracks), so I needed only audio from 1 track - I used SB to cut and paste the good track over the other track.
    2) amplified the audio
    3) cleaned up the background noise with the noise filter
    I am sure there has to be a better workflow option than what I just did (going clip by clip), Can someone give me some advice on how best to handle audio in a situation like this?
    Should I have just rendered out new audio for the whole tape I was using, and then edit from that?
    Should I have rendered out the audio after I edited the clips into one long track and performed the actions I needed on it? or something entirely different? It was a very slow, tedious process.
    Thanks,
    Aza

    Hi, Aza.
    Given that my background is audio and I'm just coming into the brave new world of visual bits and bytes, I would second Hunt's recommendation regarding exporting the entire video's audio as one wav file, working on it, and then reimporting. I do this as one of the last stages, when I know I have the editing done, with an ear towards consistency from beginning to end.
    One of the benefits of this approach is that you can manage all audio in the same context. For example, if you want to normalize, compress or limit your audio, doing it a clip at a time will make it difficult for you to match levels consistently or find a compression setting that works smoothly across the board. It's likely that there will instead be subtle or obvious differences between each clip you worked on.
    When all your audio is in one file you can, for instance, look at the entire wave form, see that limiting to -6 db would trim off most of the unnecessary peaks, triim it down, and then normalize it all. You may still have to do some tweaking here and there, but it gets you much farther down the road, much more easily.Same goes for reverb, EQ or other effects where you want the same feel throughout the entire video.
    Hope this helps,
    Chris

  • What's the best way to handle new versions of software?

    So we have an Application setup for Adobe Reader (just using Reader as a general example) which is part of our Task Sequence.  When Adobe releases a new version of Reader, what's the best way to handle getting the new version into our SCCM setup.
    I know I can create a new application and do it all over and select the new file, but can I simply replace the files that the application is pointing to and then somehow tell it to update the DPs with the new files?  I'd rather not have to create new
    applications every time if I don't have to.
    Thanks.

    I think continue the way you are doing right now by creating a new application each time there is a version change. Its a clean way to do and this helps with Application life cycle mgmt aswell where you keep track of versions across the environments and
    eventually retire an application. Specially where no changes are made without a change control. This is completely process specific and may not be applicable.
    i do agree with above posted comments about using supercedence option.
    However most of the apps comes with upgrade capabilities from previous versions. So you can upgrade existing version with new one if you do not wish to use supercedence. 
    Thanks 

  • What is the best way to handle input parameter

    When writing sub-vi's, what is the best way to handle input parameter range checking? On the front panel I can choose to have numeric values coerced to be within range, but this does not affect constants or controls wired to the vi when used as a sub-vi. I can build range checking into the vi, but this can result in a cluttered looking vi. Do you have any suggestions.

    As you discovered, the Range and Coercion properties of controls do not work when used in sub-vis.
    Your best option is to go ahead and build your range checking into your sub-vis. If it�s something you will be doing a lot, just make your range checking a sub-vi and drop it where needed. This will keep the clutter to a minimum. You may end up with more than one range checking VI if you need different functionality, but this will still make less clutter and easier re-use.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • What is the best way to handle very large images in Captivate?

    I am just not sure the best way to handle very large electrical drawings.
    Any suggestions?
    Thanks
    Tricia

    Is converting the colorspace asking for trouble?  Very possibly!  If you were to do that to a PDF that was going to be used in the print industry, they'd shoot you!  On the other hand, if the PDF was going online or on a mobile device – they might not care.   And if the PDF complies with one of the ISO subset standards, such as PDF/X or PDF/A, then you have other rules in play.  In general, such things are a user preference/setting/choice.
    On the larger question – there are MANY MANY ways to approach PDF optimization.  Compression of image data is just one of them.   And then within that single category, as you can see, there are various approaches to the problem.  If you extend your investigation to other tools such as PDF Enhancer, you'd see even other ways to do this as well.
    As with the first comment, there is no "always right" answer.  It's entirely dependent on the user's use case for the PDF, requirements of additional standard, and the user's needs.

  • HT3819 I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    Click here for options.
    (64410)

  • What is the best way to protect my macbook on the internet

    what is the best way to protect my macbook on the internet, using mobile broadband?

    against what ? malware ?
    on Macs, all that's needed is common sense.
    Mac Virus/Malware Info

  • What is the best way to connect my ipad to the high-speed Internet connection in a hotel room

    what is the best way to connect my ipad to the high speed inernet connection in a hotel room

    every connection is a bit different. Generally, connect to the wifi, then you may need to open Safari, and may even need to try to get to one of your bookmarked pages to trigger the 'agree to our terms' page to come up.
    As to it kicking you off every so often, there are sometimes glitches with the wifi on iPads, you can also be subject to any programming the hotel has. Like I've noticed various places that only allow you to log on for a period of time before having to relogin.
    most hotels have 1-800 numbers, so you can always try calling that to see if their tech support has any tips for the frequent disconnection issue.

  • What is the best way to connect my guitar to the usb port on my IMac

    This is for use with Logic Pro X
    what is the best way to connect my guitar to the usb port on my
    I-Mac

    As has been said really, the less you pay the less quality, and flexibility you'll have on your sound.
    For example, you could run on a 'Rocksmith Real Tone Cable' if you just wanted a cheap way of getting your guitar into the computer for some fun.  Probably cost you $30 (I live in UK so can't be sure).  If you're starting out then this could be considered the best option for dipping your toe in the water without spending too much.
    You won't get a really nasty sound out of that if you can process it yourself in Logic afterwards to clean up, but it won't be great either.  I imagine it could get quite noisy so you'd need to get heavily gating your guitar sound, if you're playing something clean that's not ideal.
    Longterm, you're far better getting a decent audio interface, as you need something to play sound back through, if you have different input sources you usually have to create an aggregrate device on osx to use multple sources at once esp if you're using the built in audio chip on your mac to listen. 
    All this can add latency and possibly sync issues (i.e. drum tracks not in time with audio etc.), although generally it's not too bad, but it's something worth knowing if you want to do things on the cheap without buying a dedicated interface.
    What kind of money did you want to spend? Are you thinking super duper cheap, and then see how it goes and maybe spend more in future if you enjoy it?  Personally i would say £100-150 would get your something good to start with, like that Presonus audiobox, there's a lot of options like that available.
    My local music shop always push the alesis io2 on new users, gotta say i'm not that overly impressed with it.  Line 6 stuff will be good however, but limiting.  Although i beleive you get their software for free with it?

  • What is the best way to find a file on the servers disk without using web.xml?

              What is the best way to find a file on the servers disk without using web.xml?
              I want to find a configuration file not contained within the war file I have
              created. Is there a way to pass information into the ServletContext with out
              rebuilding the ear or war files? Tomcat 4.0 can do this in its server configuration
              files. Does BEA have the equivalent?
              Regards,
              Eric
              

    You can specify the path to the file as a system property
              eg
              java -Dconfig.file.location=./mydirecotry/myfile.txt com.test.MyApp
              "Eric White" <[email protected]> wrote in message
              news:[email protected]..
              >
              > What is the best way to find a file on the servers disk without using
              web.xml?
              > I want to find a configuration file not contained within the war file I
              have
              > created. Is there a way to pass information into the ServletContext with
              out
              > rebuilding the ear or war files? Tomcat 4.0 can do this in its server
              configuration
              > files. Does BEA have the equivalent?
              >
              > Regards,
              > Eric
              

  • What is the best way to manage multiple ipods using the same itunes?

    Hi Everyone
    i am trying to manage three different ipods through the one Itunes, all with very different tastes, not sure if I am doing it the best or easiest way so does anybody have a simple solution on what you're supposed to do, to keep it all simple!
    Cheers
    Liv

    If you have created a new Windows user account you need to log out and then log back in with your original user name. By default each Windows profile will have an independent iTunes library.
    If instead you managed to create a new library within the same profile. click the icon to start iTunes and immediately press and hold down the shift key, keep holding until asked to create or choose a library. Click Choose and navigte back to your original which should be at <User's Music>\iTunes.
    Your question as posed was:
    What is the best way to manage multiple iPods using the same iTunes {library}?
    in which case Selected Playlists is probably the best approach. Simply create a playlist for each device, Alice's iPod, Bob's iPhone etc. and sync the device with the appropriate list.
    tt2

  • What is the best way to make video and audio the same lengths for posting on Web?

    YouTube recommends doing this to avoid sync problems. Maybe it will also make my videos run more smoothly. I'm talking here about random pauses I see in my movies on YouTube, not the uniform stuttering problem which I pretty much solved by redoing the movie at 30 fps instead of 24 fps. (Original is 18 fps Super 8 movie film.)
    Anyway, there is no sound during my titles. The soundtrack starts about 17 seconds in, and ends when the ending titles begin. So what's the best way to add silent audio? The best I can figure is to take some existing sound, put it in where the titles are, and turn the volume down to zero. Seems real workaround-ish, so to speak, to me. It seems to work. I even cranked it up on headphones to make sure there was no residual noice. But I'm curious if there's a better way? No biggie if not.
    Thanks.         

    I should have included the following:
    1.) Why can't I make a silent project in GarageBand? I have to instead find a project with a long enough song, make an "iLife preview" of it (see (2) below), copy it from the iMovie Music and Sound Effects browser to the end of the movie, and then open the audio panel and turn the volume to zero. And all this so that video websites don't get confused by a soundtrack that starts in mid-movie.
    2.) Why do I have to "render" them by the following process: Double-click a song in the iMovie Music and Sound Effects browser. You get a dialog box saying "The project "The Great Race" cannot be used because it was not prepared with an iLife preview. Would you like to open "The Great Race" in GB so you can save it with an iLife preview?" What I don't understand is why this new thing was introduced and why I have to do it via iMovie.

  • I have an iPhone 4 with iOS 5.1. What is the best way to update my phone to the latest iOS platform?

    I have an iPhone 4 with iOS 5.1. What is the best way to update my phone to the latest iOS platform?

    you can update over the air with strong wireless signal, or by connecting to a computer running iTunes.  Either works well.  If you do the update over the air, be sure and attach your iPhone to a wall outlet so you have a solid power supply and don't risk the battery dying during the update.
    The iTunes approach installs a much larger file because of the connection, but if you have not updated since 5.1 that might be a better approach...replace the entire operating system instead of patching. 
    Either way, backup the iPhone yourself just for your own protection in the off-chance something should go wrong...a little paranoia while updating is a good thing

  • What is the best way to avoid latency when using the io plug in?

    What is the best way to avoid latency when using the io plug in?

    Hi colin a.
    Welcome to the Support Communities!
    The article below may be able to help you with this.  Click on the link to see more details and screenshots. 
    Logic: About I/O buffer size and monitoring latency
    http://support.apple.com/kb/ht1314
    Cheers,
    - Judy

  • HT5922 I have some devices that i no longer use with AirPlay. What's the best way to remove those devices from the AirPlay List?

    Bonjour,
    I have some devices that i no longer use with AirPlay. What's the best way to remove those devices from the AirPlay List?

    In article <e35sc3$ru1$[email protected]>,
    "-->dan mode" <[email protected]> wrote:
    > > All
    > > I have a website I would like to remove from the
    internet, However I am
    > > planning on keeping the IP for a development
    location and would like to
    > > put
    > > a page up that says this site is no longer
    available. Is this how you do
    > > it
    > > or are there other pages to display when a site is
    removed.
    > > Thanks
    > > Dave
    Depending on how long the site has been active, it may be
    already
    spidered by search engines and cached. However, for the most
    part, I
    usually use my FTP program OR even Dreamweaver itself (now
    that I can)
    to delete files on the server just as I do locally. Hit the
    delete and
    confirm

  • What's the best way to handle this?

    I'm not sure what APIs/setup to use for this situation:
    A company wants to store data projects they do for clients. Each year, the data fields are set (as a result of gov't requirements) and they won't change for any client project for that year. however, the fields required can (and usually do) change every year. So things they require this year, might not be needed the next year and new fields might be introduced.
    While there are likely to be many common fields from year to year, there's no way to guarantee which ones will remain consistent. They also want to be able to do searches on the data and fields, for projects within a year and across years.
    What's the best framework/API/configuration to handle this? EJB? Simple JDBC? If so, how should the database be handled? Won't it have to constantly create new fields in a table? Or is there another way to handle this?
    What's the best way from a "clean architecture" standpoint?

    dang, I really have to start over? I finally got all this stuff working again.  well, hopefully it won't be as big a pain this time since the data won't be coming from a different machine.   After completing the Migration Assistant process, I had to reinput a bunch of serial numbers for apps, reinstall print and mouse drivers, etc...  I've finally got the new machine up and running smoothly and now I gotta start over? Sigh.
    I was hoping that either I could rename the current account after deleting the other one, or just move everything from one account to the other and then delete the 'RJM' account.
    ok, so it sounds like here are the steps I need to take:
    - make another full cloned backup of this current machine in Super Duper
    - reboot this machine using the advice in the first post, wipe everything clean and reinstall the OS
    - create a new account like 'user1' and re-do software update (which is like 2.5 gig worth of stuff) and takes like an hour even on a high speed connection
    - then re-do the migration assistant process to the properly named account
    - then delete the 'user1' account
    does that sound right?

Maybe you are looking for

  • How do I create a web photo gallery in Photoshop CC?

    In previous versions of Photoshop I go to "file", "automate", and create a web photo gallery.  That option is not available in Photoshop CC.  Tutorials online teach how to create this through Bridge but I can't seem to find it there either.  Please h

  • JCA adapter outbound connection properties values are not populating ..

    Hi , I am struggling to find a solution for this problem. My managed connection factory impl has all the properties as per the java bean spec. I have also implemented hashcode and equals but i still don't see the custom outbound custom properties inf

  • Problen in unzip a file in folder structure

    hi, how can i unzip a file and folder with folder structure. when i unzip a file it create problem. please help to solve this problem. here is my code import java.io.*; import java.util.zip.*; public class MakeUnzip { final static int BUFFER = 2048;

  • Add Accounting View to material

    I am trying to add an accounting view to a material.  The material type was UNBW so I used transaction MMAM to change to material type HALB. Now I go to MM01 and the system does not give me the option to add the accounting view.  I know that UNBW mat

  • IWeb sitemap and Google search

    I'm sorry, I mistakenly formerly entered this topic as a post on a previously answered question regarding Google Keywords. I have more questions on this topic. I have two questions: 2. I have .mac and am using domain forwarding. I obtained and follow