Is the best practice to use database views or view objects?

Hi everyone,
If the option is available, is it preferable consolidate as much data as possible into a database view instead of doing this through view view objects? It seems the answer would be yes, but I would like to hear the pros and cons related to performance, etc.
While I do not mind a detailed discussion, practical "rule-of-thumb" advice is what I am after; I am a newbie that needs general guidelines - not theories.
James

Performance is the main driver behind the question because I am wondering if it is faster to send a single large record set across a network or several small ones and "assemble" them at the client level.
Probably is better to send one large record, but you will need to take in account time required to create this one large record in db(maybe oracle object types, or arrays of oracle object types).
Check this for some VO performance advices: Advanced View Object Techniques  (especially property: "In Batches Of" which defines number of roundtrips between app server and db)
As far as creating an updatable database view, I know there are minor tricks that are required to make that happen from a strictly SQL standpoint. But, I am curious the best way to go in JDeveloper.
Some solutions:
Using Updatable Views with ADF | Real World ADF
Andrejus Baranovskis's Blog: How to Update Data from DB View using ADF BC DoDML Method
Dario

Similar Messages

  • What is the best practice for using the Calendar control with the Dispatcher?

    It seems as if the Dispatcher is restricting access to the Query Builder (/bin/querybuilder.json) as a best practice regarding security.  However, the Calendar relies on this endpoint to build the events for the calendar.  On Author / Publish this works fine but once we place the Dispatcher in front, the Calendar no longer works.  We've noticed the same behavior on the Geometrixx site.
    What is the best practice for using the Calendar control with Dispatcher?
    Thanks in advance.
    Scott

    Not sure what exactly you are asking but Muse handles the different orientations nicely without having to do anything.
    Example: http://www.cariboowoodshop.com/wood-shop.html

  • Does anyone know the best practices to use Captivates on an Elearning course, please...

    I need to know the best practices to use captivates on an eLearning course, as how much information should it has, etc..

    Hello There,
    Adobe Captivate has multiple workflows which can help you to create eLearning courses. It can create various types of learning content and I suggest you to visit the following links.
    Product Info: www.adobe.com/products/captivate/
    OnDemand Seminars to get more info on what captivate can do: http://www.adobe.com/cfusion/event/index.cfm?event=list&type=ondemand_seminar&loc=en_us
    Register for Trainings and Webinars: http://www.adobe.com/cfusion/event/index.cfm?event=list&loc=en_us&type=&product=Captivate& interest=&audience=&monthyear=
    If you have specific scenarios to discuss, you can mail me at [email protected] or tweet me at @vish_adobe
    Thanks,
    Vish
    @vish_adobe

  • What are the best practices for using the enhancement framework?

    Hello enhancement framework experts,
    Recently, my company upgraded to SAP NW 7.1 EhP6.  This presents us with the capability to use the enhancement framework.
    A couple of senior programmers were asked to deliver a guideline for use of the framework.  They published the following statement:
    "SAP does not guarantee the validity of the enhancement points in future releases/versions. As a result, any implemented enhancement points may require significant work during upgrades. So, enhancement points should essentially be used as an alternative to core modifications, which is a rare scenario.".
    I am looking for confirmation or contradiction to the statement  "SAP does not guarantee the validity of enhancement points in future releases/versions..." .  Is this a true statement for both implicit and explicit enhancement points?
    Is the impact of activated explicit and implicit enhancements much greater to an SAP upgrade than BAdi's and user exits?
    Is there any SAP published guidelines/best practices for use of the enhancement framework?
    Thank you,
    Kimberly
    Edited by: Kimberly Carmack on Aug 11, 2011 5:31 PM

    Found an article that answers this question quite well:
    [How to Get the Most From the Enhancement and Switch Framework as a Customer or Partner - Tips from the Experts|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0f0373e-a915-2e10-6e88-d4de0c725ab3]
    Thank you Thomas Weiss!

  • The best practice of using CQ.Ext.slider.Tip

    Hi everyone,
    Could anyone suggest how to use CQ.Ext.slider.Tip ?
    I've tried the next one.
    I've written js file with the code: CQ.Ext.reg('slidertip', CQ.Ext.slider.Tip);
    I've included this file.
    Then I have the next structure:
    N:cq:Widget
         P:xtype:multislider
         N:plugins
              P:cq:WidgetCollection
                   N:cq:Widget
                        P:xtype: slidertip
    And it does not work. When I remove "plugins" node the slider works fine. But with plugins node it does not work at all

    I've found a way how to do it.
    I've defined my own component, e.g.
    CQ.Ext.slider.ColumnsSlider = CQ.Ext.extend(CQ.Ext.slider.MultiSlider, {
              plugins: new CQ.Ext.slider.Tip()
    CQ.Ext.reg('columnsslider', CQ.Ext.slider.ColumnsSlider);
    So now CQ.Ext.slider.Tip works fine.
    But I am not sure, that it is the best practice.
    That would be very pleasant to hear opinions of CQ gurus.

  • Best practice when using auto complete in view layer

    Hello
    I have a question regarding best way to store/cash data when using auto complete function in view layer.
    I know that there will be a lot of visitors that will use this function and I dont want to kill the application server so I need some advice.
    Its about 6000 words that should be searchable .... my first thought was to create a Singleton-bean that stores current items and that I will iterate over but its a lot of "waste" doing that way.
    I would be very glad if anyone could advice me how to do this best way if there is any de-facto standard to use when using auto completion in "view layer"
    Thanks!
    Best Regards/D_S

    I dont know what your design is, but here are some ideas:
    To me, autocomplete means you have some user specific data that the user entered prevously such as their home address, and some generic data that is not specific to any particular user. I would store all that in a database. For the user specific data I would store their userID along with the data in the database. Then, when populating a JSP page, I would call up just the data specific to that user and the generic data from the database. I would store it as an array of some type in javascript client--side. When the user clicks the autopopulate button, I would have that button call a javascript fuction that reteives the data from the javascript array and populate the various textfields. All this is done client-side so the form does not have to be re-drawn. I question why you have 6000 items. Normally, autopopulate has at most only a few dozens of items. If you still need 6000 items, I suggest adding a textfield to the form to filter what the data he needs down to a manageable amount. Example: rather than get all names from a telephone book, put a textfield on the form that allowfs an end user to enter a letter a to z such as 'b', then only fetch last names from the phone book that begins with 'b'.

  • Is it the best practice to use Month Name as name of the column?

    Hi,
    We need to store many data elements (like Balance, Cost,  Budget etc) for each account  for varying time periods (month end, month to date, quarter end , quarter to date etc)  for at least 5 years before archiving them.
    To achieve the best performance for reporting, what would be the good design for this table (there will not be any transactional queries against table. It is meant to be for reporting purpose)?
    Is it good to use a Time Dimension table and add the Dimension key to the main table?
    OR
    Have 2 tables (monthly and quarterly).
    Monthly Table  will be having Account No, Amount Type, Year, and Month 1 through Month 12 as column names
    Quarterly Table  will be having Account No, Amount Type, Year, and Quarter 1 through Quarter 4 as column names
    Please suggest the best design for this requirement.
    Thanks!

    Having two tables will be redundant. There should be one table with  columns  Account, Balance, Cost,  Budget etc ... Date(Balance as of date) .
    Then you can have views that pull your specific reports whether it is monthly or quarterly based on the dates.
    You are looking at it from a displayed report prospective.. and I don't think that is the best way to store data. If you store it as suggested you can then display it however you want.

  • What are the best practices for using Lightroom at two locations

    Here is the problem:
    Photographer works weekends and vacations at another location with a second (non-portable) computer.  Photographer wishes to keep two separate but identical copies of the entire photo library and LR catalog for safety.  At the end of a period of work at location 1, photographer wants to take all the changed files (some new, some just modified) and update the LR catalog and the photo library at location 2.  This could be done via internet but possibly it is more practical to transport the changes on a "go-between" drive.
    Anybody have an opinion on the best ways to do this?  Is there a way to just export (as catalog) the changed files and folders and then import at the other location?  Manually copying the folders of photos that we think have been changed runs the risk of missing some.  Simply copying everything means carrying close to 2TB and this will also take a lot of time before each trip.  Not so practical every weekend.
    Advice and ideas appreciated.

    I had just started exploring smart collections (never looked at this before today) as a way of trying to collect changed/new files and metadata when I walked back into my office from my wife's (she's the photographer- i'm just tech support) and saw your reply.  I think this is the direction we are leaning to because it should cut down on the hardware needs.  The other reply that suggested using a third drive would add another layer of protection in that one would always have a recent complete backup on hand in case of sudden hardware failure, but we should be able to keep the risk way down by using a second Drobo 2 at the second location.  Drobo has been reliable and the slowness can be overcome by saving working Photoshop files to the internal drive and only saving the final finished files back to the library on Drobo.
    I am concerned about a possible performance drop if we run both the LT catalog and the file library on Drobos...currently run the catalog on the internal drive based on advice I read some time ago.
    So I assume that it is possible to import the "go-between" catalog into LR on an internal drive while copying the "negative" files to the Drobo at each location.  Hopefully this process is not painfully slow...but I suppose it depends on the number of files that are being exported and imported each time.
    A third method that I have been investigating and would love any comments on from someone who has tried it is syncing the two Drobos via internet possibly using Synchronize Pro-X (first sync done locally!)...this might have the benefit of daily offsite backup in between visits.  One thing that scares me is the possibility that somehow something screws up digitally and data is destroyed on both drives at the same time before one has a chance to discover a problem.  Also how would one verify that the second location Drobo has been properly synced before arriving to discover some problem prevented a successful sync?
    Thank you both for replying and helping me think through this problem.
    Mark

  • Just installed a new 1tb sata drive into an old g5. Now what is the best practice to use it?

    Hey all
    My old g5s memory was full so installed a new internal drive.  I have so far partitioned and named it so it is on the desktop because I saw that in a youtube vid. I'm wondering if that was the best thing to do to use it and if so how should I go about using it since my other drive is full and much smaller at 80gb.
    Thanks for any help =]

    Best way to get an exact bootable copy of your old drive to the new one is with Carbon Copy Cloner...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Then boot from the new bigger HDD by setting it in System Preferences>Startup Disk.
    BTW, what size Partitions did you use? OSX loves lots & lots of free Space.

  • What is the best practice to get database connection?

    What are best best practices in database connection to follow?

    式 可 以 采 用Class.forName 方 法 显 示 加 载, 如 下 面 的 语 句 加 载Sun 公 司 的JDBC-ODBCbridge 驱 动 程 序:
    Class.forName(�sun.jdbc.odbc.JdbcOdbcDriver�);
    然 后 运 用DriverManager 类 的getConnection 方 法 建 立 与 数 据 源 的 连 接:
    Connectioncon=DrivenManagerget-
    Connection(url);
    该 语 句 与url 对 象 指 定 的 数 据 源 建 立 连 接。 若 连 接 成 功, 则 返 回 一 个Connection 类 的 对 象con。 以 后 对 这 个 数 据 源 的 操 作 都 是 基 于con 对 象 的。
    执 行 查 询 语 句。 本 文 介 绍 基 于Statement 对 象 的 查 询 方 法。 执 行SQL 查 询 语 句 需 要 先 建 立 一 个Statement 对 象。 下 面 的 语 句 建 立 名 为guo 的Statement 对 象:
    Statement guo=con.creatStatement();
    在Statement 对 象 上, 可 以 使 用execQuery 方 法 执 行 查 询 语 句。execQuery 的 参 数 是 一 个String 对 象, 即 一 个SQL 的Select 语 句。 它 的 返 回 值 是 一 个ResultSet 类 的 对 象。
    ResultSet result=guo.execQuery(�SELECT*FROM A�)
    该 语 句 将 在result 中 返 回A 中 的 所 有 行。
    对Result 对 象 进 行( 下 转76 页)( 上 接73 页) 处 理 后, 才 能 将 查 询 结 果 显 示 给 用 户。Result 对 象 包 括 一 个 由 查 询 语 句 返 回 的 一 个 表, 这 个 表 中 包 含 所 有 的 查 询 结 果。 对Result 对 象 的 处 理 必 须 逐 行, 而 对 每 一 行 中 的 各 个 列, 可 以 按 任 何 顺 序 进 行 处 理。Result 类 的getXXX 方 法 可 将 结 果 集 中 的SQL 数 据 类 型 转 换 为Java 数 据 类 型

  • What are the best practices to use GLOBAL Variables

    Hi,
    Please guide how Global Variables can be declared and how they can be initialized.
    Further please guide what are the impacts of Global Variables(if any) on the memory of CLIENT or SERVER, if they are not initialized or freed up after usage.
    Thanks.
    Regards.

    spilgrim wrote:
    My preference is not to use them and to use parameters or package variables. There is not real control on globals so you can end up with an applicatios that has lots of them that are only used once but persist for the user session.I second that. I don't know how often I searched for bugs caused by typos in the names of global variables. Plus the fact that they are only of datatype VARCHAR2. If you are using share_library_data you could also use Package globals in a forms library to share data between called and calling forms. Or you could use a database package...
    cheers

  • What is the best practice for using portrait and landscape images within a slideshow light box?

    I am trying to create an online portfolio and want to incorporate different sized images in my work. I have watched almost all of the tutorials I can find and no one really seems to address this at all.
    Each demonstration I have watched uses the same size of image (eg. all landscape close ups) to fill the enlarged viewing space of the image. But what if all images are varied?
    Friends have gone down the Wix path, where images, borders, descriptive text and arrows are  resized to suit each individual image automatically.
    Is there any way around this though?
    Thanks in advance,
    Paul

    Not sure what exactly you are asking but Muse handles the different orientations nicely without having to do anything.
    Example: http://www.cariboowoodshop.com/wood-shop.html

  • What is the best practice for using exceptions ?

    hello
    I would like to know when to do I have to use
    1:
    myMethod () throws Exception2:
    myMethod () throws MyException3:
    myMethod () {
    try {} catch(SQLException sqlException){}
    }4 :
    myMethod () throws MyException {
    try{} catch (ClassNotFoundException ex) {throw new MyException("error" ,ex)}
    }Exception ,ClassNotFoundException and SQLException are just an example
    any other exception can be in their place
    thank you in advance

    hello
    I would like to know when to do I have to use
    1:
    myMethod () throws Exception
    Hardly ever. If you can't work out whether this is appropriate or not, it isn't, basically
    2:
    myMethod () throws MyException
    Most of the time, if you like checked exceptions. When the exception can be recovered from
    3:
    myMethod () {
    try {} catch(SQLException sqlException){}
    Never ever ever. Don't just swallow exceptions
    4 :
    myMethod () throws MyException {
    try{} catch (ClassNotFoundException ex) {throw new
    MyException("error" ,ex)}
    Opinions vary on this. If MyException is an unchecked exception, I like this. If not, you're just replacing one with the other. What for? Others will have different opinions though, and not necessarily wrong
    Exception ,ClassNotFoundException and SQLException
    are just an example
    any other exception can be in their place
    thank you in advance
    Any other exceptions? Can you really treat SQLException and ClassNotFoundException the same way? One means there was a database problem, which may well be recoverable. The other? What is your app really supposed to do if it can't find a class? Rarely, this will be recoverable, perhaps. But not usually

  • What is the best practice on mailbox database size in exchange 2013

    Hi, 
    does anybody have any links to good sites that gives some pros/cons when it comes to the mailbox database sizes in exchange 2013? I've tried to google it - but hasn't found any good answers. I would like to know if I really need more than 5 mailbox databases
    or not on my exchange environment. 

    Hi
       As far as I know, 2TB is recommended maximum database size for Exchange 2013 databases.
       If you have any feedback on our support, please click
    here
    Terence Yu
    TechNet Community Support

  • What is the best practice for changing view states?

    I have a component with two Pie Charts that display
    percentages at two specific dates (think start and end values).
    But, I have three views: Start Value only, End Value only, or show
    Both. I am using a ToggleButtonBar to control the display. What is
    the best practice for changing this kind of view state? Right now
    (since this code was inherited), the view states are changed in an
    ActionScript function which sets the visible and includeInLayout
    properties on each Pie Chart based on the selectedIndex of the
    ToggleButtonBar, but, this just doesn't seem like the best way to
    do this - not very dynamic. I'd like to be able to change the state
    based on the name of the selectedItem, in case the order of the
    ToggleButtons changes, and since I am storing the name of the
    selectedItem for future reference.
    Would using States be better? If so, what would be the best
    way to implement this?
    Thanks.

    I would stick with non-states, as I have always heard that
    states are more for smaller components that need to change under
    certain conditions, like a login screen that changes if the user
    needs to register.
    That said, if the UI of what you are dealing with is not
    overly complex, and if it will not become overly complex, maybe
    states is the way to go.
    Looking at your code, I don't think you'll save much in terms
    of lines of code.

Maybe you are looking for

  • Vendor payment through Milestone

    Hi In my buisness requirement, my client want to pay his VENDOR ( In this case it is subcontractor) as per the milestone confirmation. Is it possible and if yes please suggest how??? Regards Rao

  • Public folder not showing up as mail enabled, but it's receiving email.

    I've got several mail-enabled public folders that are showing up as not being mail-enabled in the public folder console, but are receiving email. If I run get-publicfolder -identity "\folder\name" | fl it shows that the folder is mail-enabled and all

  • 12 employee id cards ( 2 * 6) on a4 in smartforms( Anybody dare to do this)

    Hi friends There is requirement to print 12 employee id cards ( 2 * 6) in A4 size in smartforms. Id card consist of these fields company address emp id emp name emp photo designation address Option 1 : Photos are on desktop Option 2 : Photos are stor

  • ABAP debugger outside Workbench

    Hi. How is possible to debug an ABAP program outside de ABAP Workbench? Look at http://www.ceon.nl/abapeclipse/. One of the features listed is ABAP code debugging from within Eclipse. I'm curious: does exist a Debugger API or something like that? How

  • Getting Employer Discount at 3rd Party Store

    Hello, I was thinking about signing up with Verizon and doing so at a 3rd party store since it has the phone I want at a better price.  I also work at a school district that receives an employer discount on my bill from Verizon.  My question is how w