simple question about the performance of views

I have a discussion of work (battle) with several developers about the misuse of the views. Basically, they want to do a load of remote data to the server using views. Its code is from a full view and join between views by using all kinds of methods, such as LEFT OUTER, DECODE, etc.. I don't think that's right, I know that they must use the procedures to extract information and transform into tables and loading (ETL). But sometimes I'm new on the job and I have all the arguments so that they believe me, in my opinion as the join of all these points of view produces less than optimal. I think it is correct to consult to see if I'm right or wrong.

Thank you.

You are right. A view is a query online. Why anyone would add this to an ETL process?

Avoid as much as possible the views and use SQL statements to query the tables directly.

(I wonder if they like paying anything?)

Views are likely to require analysis that cause performance problem.

Views can result in countless columns returned when all you really need are some of these columns.

The best way to win this (fight) is to offer to write the SQL code for them.

A little explains plans before and after will not hurt either.

Best regards

mseberg

Published by: mseberg on August 20, 2011 19:58

Database Performance Tuning Guide B28274-02

16 SQL Tuning Overview

Effective development of SQL statements

Tags: Database

Similar Questions

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Simple question about the signing of the app

    Hello.

    I develop libraries to be used in other apps.

    It will be a cod file, its name will be added to the jad as a dependency.

    My library has access to the secure API (call of the browser), so I have a simple question:

    can I register only my cod library or application that uses my library is expected to be signed in too?

    THX.

    You should be ok just signature cod of the library, if your application uses any API secure. However, I just make a habit to sign everything just in case.

  • Qosmio G30: A few questions about the performance of RAID-0

    Hi all, this is my first post here, so please be gentle with me.

    I read a lot of posts explaining how to configure striping RAID-0 (and pitfalls) but I've not found anything that describes the performance benefits. It would be great to hear from anyone who has implemented RAID-0, with before and after comparisons of speed.

    The system starts twice?
    Applications load significantly faster?
    Is significantly faster when you save large files? Or is it simply not useful?

    All information of those in the know would be greatly appreciated.

    Thank you, Bob.

    Hello

    I used the Qosmio G20 a few months ago and I used the operating system on the HARD drive with RAID (a visible HARD disk) and without RAID (two visible HDD)
    I didn t notice any speed restrictions and the laptop starts at the same time.

    But I noticed different results please share with us ;)
    Thank you

  • Questions about the performance and discs

    Specifications of the computer:
    ASUS P6X58D Premium Mainboard
    Intel Core i7 930 (no decree with Zalman 10 X Flex cpu cooler)
    12 GB (six 2 GB) Kingston PC3 10600
    PSU Antec CP - 1000 1000 watt
    NVIDIA GeForce GTX 480 video card
    Card RAID Areca ARC - 1680IX - 12 PCIe x 8 SAS
    (hard drives listed below)
    Windows 7 Pro 64-bit, with many system applied settings (no antivirus loaded into the machine.
    No startup process all active.)
    Adobe Production Suite (enabled in PPro CS5, update 5.02 MPE) installed
    Latest Nvidia drivers installed.

    Blackmagic Disk Speed Test

    (system disk) Two Intel X25M MLC GEN 2 80 GB SSD drives in a striped RAID 0 array.
    read: 501.0 MB/s write: 130,9 Mbps

    (disk storage) 2 a to 2 WD 7200 RPM 32 MB SATA hard drive.
    read: 117,0 MB/s write: 118.4 MB/s

    (project reader) Three WD black 1 TB X 6 GB/s 64 MB of cache disks in RAID 5 array.
    read: 211,9 MB/s write: 215,3 Mbps

    These moments of read/write comparative look correct?

    Video editing:

    DV (720 x 480) 48 hz audio 30 fps 3.6 MB/s
    4 layers
    Layer 1-100% opacity, applied Cineon converter
    2 - layer 50% opacity, vertical flipping applied
    Layer 3 - 30% opacity, applied color balance filter
    Layer 4 - 20% opacity, filter contrast applied
    read the full resolution
    IN TIME REAL
    CPU utilization - 25% (I knew performance DV would be awesome.) I could have added more layers but stopped at 4)

    AVCHD (1920 x 1080) 48 hz audio 60 fps 3,1 MB/s
    2 layers
    Layer 1-100% opacity, filter contrast applied
    Layer 2-50% opacity, vertical flip
    reading of the resolution 1/4th
    Real-time

    CPU utilization - 98-99% these specifications of reading straight look? The GPU is doing its part to work? I guess that my GTX 480 is positioned in the right slot?

    Question: The cards need fast RAID when the flow of AVCHD is 3. 2 MB/s?    ?

    I find it interesting that I spent $4K on a computer and I only make 2 layers of AVCHD in real-time (from reading of resolution 1/4). I am aware that my provider built computer is more expensive, but in return, I will say it is surprisingly quiet.  :-)

    Should I wait for performance significantly more when I switch to the 980 x cpu and 24 GB of RAM? Maybe I owe OC my processor for best results, but I have neither the time nor the inclination to teach myself overclocking. (Anyone know of a person in the Phoenix area, AZ, who is skilled at overclocking)? I did not test PPBM5 I just want to get better performance for what I paid. Maybe my expectations are wrong?

    I suggest that update you with the version of StorPort that is the improved version of the driver technology Microsoft.  SCSIport is what has been used for Windows XP.

  • Question about the performance of the battery on the Satellite L-30

    I barely an hour out of a fully charged battery, even with WiFi off and turned down screen brightness. With WiFi on I have the chance to get 45 minutes. The model # is PA3450U-1BRS battery & is allegedly 2000mAh.

    Is it by the course or is it possible that I have a bad battery? How much time does everyone out of their?

    See these topics:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=22201
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=20368

    I got about 1h15m with WiFi and normal brightness. I had the same battery, but I bought a new one (4400mAh), now I get about 2h45m. But the 45 minutes sounds very bad. Maybe your battery is bad.

  • simple question about the condition

    I have a simple code:

    function fl_TouchEndHandler_v(event:TouchEvent):void

    {

    event.target.stopTouchDrag (event.touchPointID);

    var targets_v;

    var obj_v = event.target;

    event.target.stopTouchDrag (event.touchPointID);

    targets_v = (obj_v.DropTarget.parent)

    obj_v.x = targets_v.x

    obj_v.y = targets_v.y

    trace (targets_v.Name);

    my_sound_v.play ();

    I need to write a condition (if or while) that will do something if my sound does not play (for some reason any).

    Find the Sound class in the Flash help documents.  In the section covering the load() method, there is an example that uses a try/catch approach, but also an event listener...

    try {}

    SND. Load (req);

    SND. Play();

    }

    catch (err: error) {}

    trace (Err.message);

    }

    snd.addEventListener (IOErrorEvent.IO_ERROR, errorHandler);

  • Simple question about the race of the Illustrator borders - help please!

    Hello

    I'm new to Illustrator, and I can't understand something.

    I have a simple rectangle with a fill color, say red and a color of outline of us Let's say blue. Then, I use the drop down menu on the horizontal tool bar options change the race of a simple contour to something that looks more like a decorative edge. In CS4, I use the last option on the drop down menu, which has to stroke brain/border corners around the inside of the curve. When I chose this option, the filling remains as a rectangle with sharp corners that 'out' where the accident vascular cerebral/border curve inwards.

    I would like to know how to keep the race/border while getting rid of corners of the rectangle that die. I tried the erasure of the rectangle, but negatively affecting the border/stroke shape.

    Thank you very much for your help.

    David

    There are a few ways (or maybe more) to do. Both involve separating the object into two parts, one with a fill and no respect and the other of a sudden and no fill. Make sure that the trace object is on top and apply the brush line, then lock it. Add and remove anchor points at the four corners to get the below form (magenta rectangle) that will be hidden by the brush line. You can also do it using object > decaying appearance to generate the two forms of the original.

  • Simple question about the field in 4.7.0 class

    Hi, people.

    No one knows what method of field controls class that the virtual keyboard is displayed when the field is concentrated.

    I implemented a custom field and when it happens the keyboard displayed discussion. And I want to avoid this.

    What is the method that I need to replace to avoid the display of the virtual keyboard?

    Thank you.

    You can use the internal VirtualKeyboard onFocus of your custom field and onUnFocus methods to control the display of the virtual keyboard.

  • A seemingly simple question about the free transform tool.

    I have always used the free transform tool where the thing that turns in the background, and the transformation automatically makes a new layer. How can I do if the transformation will not cause a new layer, and it won't be the thing in the background which has been transformed to the original?

    I noticed that with other people, it is not the thing that has been transformed in the background, so they have to deal with him.

    Edit - Transform does not a new layer automatically AFAIK.

    Any chance you've been making is something like this?

    1. duplicate the layer with the tool move, possibly by holding down the Alt (or Option) key while dragging with the mouse.

    2 to see the transformation of the controls is enabled for the tool move, which means that the show handles when the move tool is selected and immediately, it would be possible to transform what has been moved / duplicated.

    -Christmas

  • Simple question about the file .AS in flex3 code integration

    I'm sure it's very easy for most people, but I can't understand it off... nada, zilch...

    I have this file ( file of optimized Perlin noise), and I'm trying to register / make available in my code flex3. I can't get the code right names/import space, and I'm not sure - because of the namespace - if I'm supposed to put this file in a collection of subfolders (something like: nl/ronvalstar/math...). The end result is for me to be able to replace the BitmapData.perlinNoise method with a version optimized for the generation of clouds in real time.

    I would be grateful if someone could give the code for this file integrated.

    Thanks :)

    You must place the file in the folder (> indicates subfolder)

    SRC > nl > ronvalstar > math

    You are supposed not only to put the file here, you put it here. In fact, it must put a packet having all its classes in the corresponding folder.

    Then, use

    Nl.ronvalstar.math import. *;

    at the beginning of the section of your mx:Script. Or - just import the single class - use this:

    Import nl.ronvalstar.math.OptimizedPerlin;

  • Question about the construction of cube / query performance (11.2.0.3)

    Hi, I have a stupid question on the performance of cube generation. By choosing the precalc %, is linear (or nearly linear) construction time to that? for example if you select 10% going to be 3 times faster than the selection of 30%? Also, is it fair to assume that if only 10% of the values are precalculated, an average end-user queries have to hit 3 times more data and therefore be about 3 times slower?

    Sorry, this on a virtual computer on your laptop, so test different configs build takes forever (I still have a load of cube really complete). Guess I should not be trying a cube Sun 15 on a virtual computer on your laptop, but trying to sell a DBA on the fact that she could improve the performance of our mini - DW.

    Thank you
    Scott

    Aggregation based on costs (aka "Pre-computes percent") was introduced in 11.1 as a simpler alternative based on the level of aggregation. Product management dream was a linear parameter, but the complexity is quickly apparent. Which could measure the linearity against? The generation time? Time of the query? Total size of the disk? The result the balances of all of these factors, but is linear against any of them. Fortunately, behavior level percentage precompute was fairly consistent between cubes and patterns in our experience, so I can give you a rough characterization. But keep in mind that this is a guide only - you have to experience on your own scheme and a system to see what works for you. In particular, you must balance your own requirements on construction time, time of the request and the disk size.

    * 0% *-this means no precomputation at all, so all data access will be dynamic. This is the recommended setting for the top of the page partition of a cube. If, for any reason, you want to use for the scores of leaves as well, then I advise you pass a cube uncompressed.

    * 1% *-he pre-computes the smallest part of the cube that is allowed by the algorithm and would take certainly greater than 1% of the time taken by an accumulation of 100%. For partitions of leaves, it is usually best to increase the amount because you'll get much better query response time for not much more profitable in terms of disc size and the generation time. It may be a good level for the top of the page partition of a cube, but should be used with caution because the top of the page scores are often too big to pre-computes.

    * 2%-19% *-these levels does not seem to be a lot of benefits since the amount of time and the total size of the disk is almost identical to a construction of 20%, but queries are slower.

    * 20%-50% *-this range is probably the best compromise in terms of construction compared to the time of the query. The default value of the AWM is 35%, which is a good starting point. Lower it to 20% if you want a faster version and get up to 50% if you want to replace the faster queries. The setting is close to linear in this interval than outside it.

    * 51%-99% *-you should probably avoid these levels, although I've seen 60% used in practice. The reason is that while the size of the cube and the length of the construction increase rapidly, the queries do not receive proportionally faster. Indeed, you may find that queries are slower because the code spends more time swapping in the pages of the disc.

    * 100% *-this will be pre-computes all (non-NULL) cells in the cube. It may be a surprise after my advice about 51%-99%, but 100% is a reasonable level to choose. This is because the code is much simpler when you know that everything is precalculated and then stored in the disk pages.

  • Questions about the implementation of clusters of storage and DTS on active cluster

    I have a few questions about the implementation of clusters of data store and SRS storage in VSphere 5.1.

    We have a data center with about 15 HP blades and a few servers non-lame.  The hosts are all either VSphere 5.0 or 5.1.  Our back-end storage is an EMC VNX 5700 with about 20 stores of data.  All the VMWare is managed by VCenter 5.1 running on a dedicated physical machine.

    Currently, each data store is used individually; No piles of data store are put in place.  When a new virtual machine is created, the administrator usually chooses the data with the most space store.  Periodically, we will go back and manually storage vMotion machines to balance the load.

    Recently, we have expanded the VNX storage, so we now have LUNS in different pools, with different levels of performance.

    What I would do is set up for the data store clusters, so that us when a virtual machine is created, the administrator must not know what data store is in which pool.  Also take advantage of the DRS storage so that the burden of storage will be "refine" himself a little.

    I know the setting up of a cluster of storage in a 'clean' environment is quite simple, but my concern is creation/conversion data warehouses existing in active production in the cluster, while they are used.

    If I access the screen "data warehouses and store data from clusters ', right-click on the data center and create a cluster, and then move the various data stores in the new cluster, will there be an interruption in the production running systems?

    I also wonder about activation of storage i/o control.  It is not currently enabled on data warehouses.  I know it's useful for the StorageDRS, but will be allowing any negative impact on the system?  If I turn on the warehouses of data, is there anything else I should do or set in addition to all that allows him?

    Finally, we are in the process of Site Recovery Manager configuration.  SRS has an impact on the configuration of the data clusters and DTS store?

    Thanks in advance for your comments.

    Mike O.

    Gregg Robertson wrote:

    Hello

    Clusters of data and using DTS store doesn't impact RS even if you create a cluster of data store for storage of replicated data and another for everyone else, this way you machines virtual you want to replicate are not moved on warehouses of data that are not replicated , but will still have the ability to move if there is a conflict.

    Gregg

    With all due respect but SRM and DTS don't go together. SRM does not at all support the use of DTS. So if you are configuring SRM forget DTS for now.

    Reason for this is that SRM knows no DTS and VMs can be in flight when a failover should occur, and bad things can happen. Also, the protection breaks when a virtual computer is moved between data warehouses in a cluster data store.

    In short: don't go there.

  • A few questions about the Satellite A100 PSAANE

    Hi friends,

    I have a Toshiba Satellite A 100 - PSAANE with Vista Home Basic preinstalled in it.
    Now, I have a few questions... I mention below: -.

    (1) if I want to format my laptop, I need a CD to install for Vista Home basic... then I don't have this Toshiba CD when I bought the laptop. So how do? question: How can I format it?

    (2) can I change my Vista Home Basic to windows XP? I think it's much faster than this one. is it advisable?

    (3) I have a GB of RAM in the laptop. Increase the RAM? I think that my laptop has become to slow down. is it advisable?

    (4) and on my screen, everytime I try to change my profile screen to windows Classic view, my screen begins to blink. and after a while, the screen turns off. So I can't change that. I put the color scheme of windows vista only. What to do about that?

    Please help me friends. Thanks in advance.

    Kind regards
    Perkins

    Hello

    Here, a few questions about the number:

    (1) usually, you should get the Vista Toshiba Recovery DVD. If you didn t receive this DVD then you can order it here https://backupmedia.toshiba.eu/landing.aspx or you could install the disc of Microsoft Vista.

    (2) of course, you can do this. I think that Win XP drivers can be downloaded from the Toshiba driver page.

    (3) Yes, you can upgrade the RAM. For more information, see your manual or search on this forum for similar topics

    (4) maybe it s associated with the graphics driver. Check if you can update. I would recommend additional check if you are using the latest version of the BIOS

    Welcome them

  • Ask questions about the functionality of EA8500 MU-MIMO

    Dear Linksys

    I bought EA8500, and it arrived today.

    I have two questions about the functionality of MU-MIMO of EA8500 AP.

    1. I want to compare the performance between SU-MIMO and MU-MIMO, but there is no option to control this feature in the router admin page. Is that one of the possible ways?

    2 EA8500 supports 1733 Mbps wireless speed, but it resembles the speed of 1 Gbps ethernet cable.

    This router supports really speed 1 Gbps ethernet? or y at - it an option to support more throughput as the aggregation of links?

    Thank you

    Hi, hyeonu. For your first query, it is not possible because there is no option to disable the feature of MU-MIMO on your Linksys EA8500 router. In addition, with regard to your second, you can get a higher throughput of 1 Gbps since this is the maximum capacity of your ethernet connection.

Maybe you are looking for