How big should I allow my SP's to get?

Hi,
I've got a stored procedure which returns entries for a calendar from all over my database by looking at lots of different tables that have date fields.
The SP is basically a union of about 10 different selects from various places but I am also doing things like swapping that dates if the end date is before the start.
My question is how large should I allow my SP to get before I start shifting some of the logic back to the C# code?
Cheers,
Paul.

There is no direct answer to that question, but maybe: it is not the right question to ask.
As long as you are reading working with data from the tables you should probably be in SQL. Particularly if you do this in a set-based fashion. That is, if you need to swap start/end dates on 10000 rows, you can do this in a single statement in T-SQL. Not
in C#.
One situation where you should consider C# is when you want to complex logic on a scalar value, for instance regular-expression matching. Or administrative operations like working the surrounding file system. It may also be an option for data operations
where there is no good set-based solution in T-SQL.
But the sheer size has little do to with it.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How big should my external hard drive be for me to use Time Machine?

    i am a student and dont have a significant amount of files and that on my computer so how big shuld my external hard drive be?
    I will be using a normal external hard drive so will i be getting the full and the important features out of time machine if i do this?

    There are two questions you should ask yourself:
    1.  How long will it take me to fill up my internal HDD?
    2. How far back chronologically do I realistically expect to have go to retrieve data?
    I submit that in the vast majority of cases, a HDD of the same size as you have in your MBP will be ample.  If things change, adjustments can be made well in advance.  Its the very rare user that will generate multi GBs of data and file changes every session.
    As an example, I have a 750GB HDD in my MBP and a 750 HDD dedicated to Time Machine.  The oldest backup goes back 7 months.  At the rate that I update Time Machine, I expect the Disk to be filled and start deleting old data in about 3 months.  For me, that is more than sufficient.
    There is another aspect of backup strategy you should consider.  I would highly reccomend that you have a second external drive to store your most important files that may be duplicates of those in Time Machine.  All HDD will fail.  You just never know when that will happen.  If your Time machine disk expires, this way you are not left in a calamitious situation.
    Though some of my views may be in the minority, the final decision is always yours.
    Ciao.

  • Just how big should my sight file size be?

    i have a big sight but have worked hard to make sure all the photos etc. and graphics are quite small in file size. The inspector is showing me the sight size is 1.1 gig.
    i have no idea if that is small med or large and of course I want it to be a brisk sight to navigate for those that visit.
    Any ideas on sight size restrictions or hints?
    Thanks
    John

    Roddy wrote: "Research suggests that the average surfer will wait for 7 seconds for a page to load. If your blog takes much longer than this then its getting too big and even your most ardent fans will get impatient!"
    This is true, however an important piece of the story is missing. What if "Ardent Fan" is willing to wait 7 seconds for your page to load via his 10Mb Cable Modem, while his dad, "Ardent Fan Sr." is willing to wait the same 7 seconds, but he's in Alaska on a crap-tastic 256Kb Cable Modem? Who do you code the pages for, when they're both "Ardent Fans?"
    I'm just digging into iWeb ('08) now... been doing the Dreamweaver routine for years. Does iWeb have a "load speed bottleneck" feature where it will render your pages at 56K, 1.5Mb, etc. so you can see what the load times look like? There are some very cool old-school HTML tricks (like a low res image that loads in B&W then has the color version of the same image load on top of it) that just aren't perceived well with today's higher speed 'net access. I still deal with clients in rural Alaska who surf via dial-up over a cellular phone. Certain applications always call for the pages to be as teensy as possible, while others can get away with bigger (and prettier) pages.
    -Case

  • How much should I pay to Chevron Card to get a good score bump?

    Hi there, This is my first post in my journey. I currently only have a Chevron Card reporting. My limit is 2300 and I have a 1500 balance. How much should I pay off to see the best and fastest increase in score? 

    martind wrote:
    Hi there, This is my first post in my journey. I currently only have a Chevron Card reporting. My limit is 2300 and I have a 1500 balance. How much should I pay off to see the best and fastest increase in score? Optimally you should pay it down to between 1-10%, so up to $230 reporting balance.  At worst you should probably have it below 30% or around $690 in this case. I know you're not asking for this advice, but it's pretty crazy to carry a balance on a gas card.  The rates on those things are usually super high.  Just a friendly suggestion, but try to control you spending on your gas card before getting yourself a general use card like a Visa/MC because you could get into way more trouble if you're able to spend everywhere.  I know many people would have appreciated such advice at some time in their credit past.

  • How full should I allow network storage to get?

    I see a lot of averages that state you shouldn't fill up your RAID (XSAN Volume, X-RAID, Whatever you use in Final Cut Server to Store and/or edit media off of for all the client computers) beyond 80%.
    I understand that there is both a huge performance hit and possible data corruption/drive issues when you fill up your RAID volume. Each on of our RAIDs has a 9.55 TB capacity. I was hoping to use 8 TB--around 83%.
    Does that sound right? Any recommendations?
    Shawn Larkin

    We are running 2 x Cal Digit HD Pros. Each has 8 x 1.5 TB drives in it that when formatted RAID 5 / HFS gives us a total of 9.55 TB useable space on each RAID.
    The Media and Library Devices on these volumes are set to "Edit In Place" status.
    Also, I have never turned on journaling for media/editing volumes. Do you have any advice for this? I've read a lot about it and it seems like the overhead/possible performance loss does not warrant using it for these RAID volumes. But I have found not definitive answer.
    Finally, I am still testing "the best way" to import our media catalogue and raw media into Final Cut Server. I was dead on when I said that FCS makes unnecessary duplicate proxies depending on how you import the media. This is a big deal for those of us that like to run a clean, clutter free workflow.
    I do appreciate your time,
    Shawn Larkin

  • How long should I have to wait before I get a spee...

    I have had weeks of problems with slow broadband issues due to a line fault which only shows when it is wet.
    They have appeared to fix the problem on Friday at long last as I did not lose my line when it rained today but my speed has remained between 0.00 and 0.13.
    I have been told they have reset my profile which normally increases my speed in minutes but not this time.
    I am told by one bt broadband support person I could have to wait 10 days, anothe person says 48 hours.
    I cannot understand why the speed does not increase a bit, my normal speed is between 1.5 and 2mb
    My latest figures from BT wholesale speed test is as follows:
     Download speedachieved during the test was - 0.13 Mbps
     For your connection, the acceptable range of speeds is 0.05 Mbps-0.25 Mbps.
     Additional Information:
     Your DSL Connection Rate :1.98 Mbps(DOWN-STREAM), 0.45 Mbps(UP-STREAM)
     IP Profile for your line is - 0.14 Mbps
    Sppeds of just 0.13 is almost unsable, sometimes I cannot even get a page to display.

    you currently have a connection speed of 1.98mb but due yo previous problems your profile is at rock bottom of 0.14mb.  this should normally fix itself automatically given a stable connection 24/7 for 3/5 days.  can you post router stats to show if connection time 3+ days
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How to decide how big my ZIL and Cache device should be?

    Hi all,
    I have a multiple LUN connected to my server with different size.
    1.
    If I want to add ZIL to the pool:
         How to calculate the ZIL (size) to fit different Pool size?
         it is better to mirror the ZIL? If the ZIL devices is from the SAN storage?
    2.
    Same as Cache device, how big  should I give?
    3.
    Cache device is recommended to use SSD. However, if my SSD is not the local SSD but it is a SSD in the SAN storage which is the same storage of the pool. Is it useless to give a cache device to the pool? As it limited to the fiber channel throughput.

    Hi,
    Good questions and to recap these performance features:
    Separate log devices (ZIL) are good for improving synchronous write performance
    Separate cache devices (L2ARC) are good for improving read performance
    In general, we recommend the following:
    1. Use SSDs for both ZIL or cache otherwise you won't see the performance boosts when using HDDs.
    2. The cache device size should equal your application's warm working set size.
    3. General log sizing recommendations are here:
    Creating and Destroying ZFS Storage Pools - Oracle Solaris 11.1 Administration: ZFS File Systems
    Creating a ZFS Storage Pool With Log Devices
    A more specific case is for the Oracle db redo log, where the recommendation is 15 seconds of redo
    log activity x 2 or 300 MB.
    4. Local attached SSDs as log or cache devices will perform much better than if they are attached
    through a SAN array.
    5. Mirrored log devices are recommended, but unnecessary for cache devices.
    Thanks, Cindy

  • How big of a root partition should I have?

    I am new to Archlinux and Linux in general. I recently installed my first Arch system but I have not yet installed a desktop environment for I am trying to learn the command line.  I was planning on using this weekend to set up a desktop environment but I cannot decide which one to use, so I will try them all (or at least Gnome and Xfce).  My question is how big of a root partition should I have to give me ample space to play around including having more than one desktop environment installed at once.  I currently have a 20 GB hard drive with my root partition set to 4 GB.
    Thank You
    Morgan Smith

    If you care, here is mine:
    Name                            Flags                          Part Type                  FS Type                                     [Label]                               Size (MB)
              sda1                            Boot, NC                        Primary                   Linux ext2                                                                            41.13                     
              sda2                                                            Primary                   Linux swap / Solaris                                                                 271.44
              sda3                                                            Primary                   Linux                                                                              39851.49
              sda4                                                            Primary                   Linux                                                                              39859.71
    Where /dev/sda1 is /boot,
    /dev/sda2 is swap,
    /dev/sda3 is root, and
    /dev/sda4 is /home

  • How to set MM02 should not allow to change account and costing view

    Hi all guru's
    How to set MM02 should not allow to change account and costing view details for orher users expect me,plz help me
    thanks
    ramesh

    Hi Ramesh,
                       Use the Authorization Object:  M_MATE_STA     Material Master: Maintenance Statuses
    Below are the Views for the MM02, Field STATM
    Whichever not wanted to be changed, please dont provide them.
    A     Work scheduling
    B     Accounting
    C     Classification
    D     MRP
    E     Purchasing
    F     Production resources/tools
    G     Costing
    K     Basic data
    L     Storage
    P     Forecasting
    Q     Quality management
    S     Warehouse management
    V     Sales
    X     Plant stocks
    Z     Storage location stocks
    Regards,
    Yawar Khan
    Edited by: 1234_abcd on Jan 10, 2012 8:14 AM

  • I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    With the Nanos, you should have no problem lending them loaded with audiobooks from Librivox, etc.
    As for the iPod Touches, I'm not sure the question is whether you should allow patrons to set up the device for personal accounts, but whether you can prevent them from doing so. Prepare to to a factory restore every time one is returned.

  • How to disable Refresh,Reload in browser and user should not allow to multiple browser sessions ?

    Dear All,
    How to disable Refresh,Reload in browser and end user should not allow to multiple browser sessions in portal.Where we need to configure the settings or any code in masthead or any other component. My server version is 7.4 - SP5 .Please help us.
    Thanks for advance,
    BR,
    Durga Rao.

    Dear all,
    i am able to logoff the click refresh button on keyboard.I am using this code to log off the user into the portal.
    document.onkeydown = function(e)
      var key;
      if (window.event) key = event.keyCode
      else
      var unicode = e.keyCode ? e.keyCode : e.charCode
      key = unicode
      switch (key)
      { //event.keyCode
      case 116: //F5 button
        LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 82: //R button
      if (event.ctrlKey)
    LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 91: // ctrl + R Button
    LSAPI.sessionPlugin.logoff();
      event.returnValue= false;
      key=0;
      return false;
    Thanks.
    But i am unable to control the multiple windows opening the browser.So any one can tell me the how to block the new window and new tab/duplicate tab option.
    BR,
    Durga Rao.

  • How to write validation in java sript item should not allow more than 20 ch

    HI,
    I need to write validation in java script for a item it should not allow more than 20 characters.
    Thanks
    Nr

    If this answers your question, please mark your question as answered (so everyone knows it is answered) and assign points where you see fit..
    Thank you,
    Tony Miller
    Webster, TX

  • How big a deal is the shared memory for video editing

    Hi,
    It looks like the portable Mac I have been waiting for has been released. The one thing that I am wondering about is the shared video? memory. How big a deal is it?
    It looks like it should not be an issue with iMovie. How about FCE?
    With the Macbook at $1,300 and the entry level MBP at $2,000, $700 is a lot to me- budget and otherwise- Especially since I will add a gig of ram, and the 3 year apple protection plan.

    Hi There,
    I use iMovie most of the time for around an hour project and went back and forth with iSlick FX, iTunes, garage band and iDVD, and I find my MAcBook serve me well (2.0 Ghz, 2 GB), and use external LCD for wider view editing area.
    The chipset is actually allowed to use up to 224 mb of shared memory (with based 80 mb on os X) and the bigger matched memory you install, the more flexibility for that graphic chipset to allocate shared memory.
    The only time my project getting choppy is when I select show waveform for entire clip in my project area. That is when the chipset is lack power to play it real time.
    But if you are serious about getting editing and planning to upgrade to Final cut (express or pro) later, MacBook Pro is a better investment and bigger screen too.
    Good Luck

  • Prototyping - How Big Can You Go?

    I'm currently building a Prototype and have about 25 pages - the Fireworks file is around 1.3MB and is all vectors and text, yet it brings Fireworks to its knees when I open the file to work on it??
    I've got a Intel Core 2 Duo 2.66GHZ processor running Vista SP1, 4GB RAM and loads of disc space.
    Was hoping to build another prototype soon with 100+ pages but am concerned it wont be able to handle it?
    How big are your prototypes guys and gals??

    It looks like you could take more advantage of using symbols for a lot of your common vector shapes. That will cut down on processing power because you're really only working with one shape.
    You have several pages which contain identical content in the same physical areas (menu pages for example) If you had separate layers for content, you could share the layers containing identical content over specific pages, again cutting down on graphic overhead.
    The drop down symbol you're using should have its own built in label, which can be customized for each instance of the symbol. For some reason, your version isn't working. The whole Rich Symbol concept is  - to be polite  - busted, but I'm sure one of the drop down menu symbols should allow you to add labels via the Symbol properties panel, rather than having to add a text object on top like you've done.
    I am not sure how much of an improvement you'll get, if you build new wireframes based on these suggestions, but when I've asked, there is no official limit to the the number of pages that can be created. Master pages, shared layers, symbols and excluding high-res bitmaps (not an issue in your case) should all help to improve performance and keep the file more manageable.
    I do suggest though, if you're finding FW very sluggish, to save often.
    HTH
    Jim Babbage
    NewMedia Services 
    http://www.newmediaservices.ca
    Community MX Partner -
    http://www.communitymx.com/author.cfm?cid=1036
    Adobe Community Professional
    http://www.adobe.com/communities/experts/members/206.html
    Author - Lynda.com
    http://movielibrary.lynda.com/authors/author/?aid=188
    Author: Peachpit Press
    http://www.peachpit.com/store/product.aspx?isbn=0321562879

  • Do not know how big or small items in image will be after being printed out

    I have just started using photoshop to develop some designs that are meant to be printed on fabric. And then sewn into dresses
    While I know how to change the size and scale of the image and canvas. I can not tell how big or small the objects or different elements in the pattern will be when printed out.
    For example if I want to have a certain part of the pattern appear on the shoulder of a dress and another on the hem, how do I ensure that they are printed at the right size and in the right place.
    I tried printing out one pattern on a meter of fabric and it turn out that it was too big and most of the design will be cut in the process of making the dress. I have no way to determine the dimensions.
    Is there a way where I can place a dress outline over an image to check it out or size the individual items inside?
    Thank you

    can place a dress outline over an image to check it out or size the individual items inside?
    Do you have the cut in digital form (vector or pixels)?

Maybe you are looking for

  • Zen touch no longer being recognized and im ticked

    OK here the problem, When i plug in my zen touch the computer makes 3 quick "I recognized the device" noises. then nothing shows up anywhere , not in WMP, not in NOMAD explorer, or anywhere. When i Unplug it it makes the Disconnected noise. Help?

  • Will adding more ram to my Macbook Pro make it faster?

    So I have about mid-2010 Macbook Pro and after all these OS upgrades throughout the years (currently running OSX 10.9.5), it's starting to run annoying slow but still useable. My specs on this Macbook is a 2.4 GHz Intel Core 2 Duo processor and 4 GB

  • How to get the Sales Text?

    Hi, I need a Function which will help me to read the Sales Text found in the MM03. I am using the following function but it seems I am not getting the NAME right. In the table STXL when I checked the NAME contains the MATERIAL(X7000114BLCK), SALES Or

  • Content Repository to JSPX

    Hi all, we have webcenter, UCM and JSPX pages. content in UCM is plain text and xml we created connection to UCM. How do we plug the incoming UCM content in Jspx (*we are not typing the content in jspx*)? we put it under af:document tag or af:form ?

  • Time Machine after Reinstalling HD

    I upgraded to Yosemite, and my iMac started going slow. There was some sort of kernal_task. Long story short I gave up trying to fix it and I decided to erase the Mac HD and reinstall Yosemite. Everything is fine, except now I want to add some files