Confusion in this  scenario

I have 3 tables
1. Interdata –
INTERDATAID
SESSIONID
CLIENTIP
BROWSERTYPE
USERID
LOGINDATE
CREATEDDATE
SOURCEURL
DESTINATIONURL
DIFFERENCE
2. Filter-
FILTERID
SESSIONID
CLIENTIP
BROWSERTYPE
USERID
LOGINDATE
CREATEDDATE
3. Filterdetail-
FILTERDETAILID
FILTERID
SOURCEURL
DESTINATIONURL
CREATEDDATE
First I insert the records in interdata table through sqlldr.
Now I want to insert the records in filter and Filterdetail tables from interdata table.
But condition is that if sessionid already present in the filter table then do not insert the records in filter table.
And into Filterdetail table we have to take filterid from Filter table and insert the records
From Filterdetail table.
Please tell me the solution .
I am trying this from last two days.
Please help me.
Thanks and Regards,
Prathamesh.

Alternately
BEGIN
    FOR i IN ( SELECT sessionid FROM interdata
               MINUS
               SELECT sessionid FROM filter )
    LOOP
        INSERT INTO filter
        SELECT filter_id_seq.NEXTVAL
               , sessionid
               , clientip
               , browsertype
               , userid
               , logindate
               , min(createddate)
        FROM   interdata  
        WHERE  session_id = i.session_id
        GROUP BY filter_id_seq.NEXTVAL
               , sessionid
               , clientip
               , browsertype
               , userid
               , logindate;
        INSERT INTO filterdata
        SELECT filterdetail_id_seq.NEXTVAL
               , filter_id_seq.CURRVAL
               , sourceurl
               , destinationurl
               , createddate
        FROM   interdata  
        WHERE  session_id = i.session_id;
    END LOOP;
END;
/You should bench mark the two approaches to see which is more efficient. Bear in mind that the profile might change as the table sizes increase.
Cheers, APC

Similar Messages

  • How to approach this scenario (Many to Many). A bit confused

    Hi all,
    I have a scenario where I am confused and am looking for some guidance. Let me explain the scenario I have.
    I have an Item Table (Which will be used to create Item Dimension) :
    ItemID
    ItemName
    Item1
    ItemName1
    Item2
    ItemName2
    Item3
    ItemName3
    Item4
    ItemName4
    I have a Promo Table (Which will be used to create Promo Dimension) :
    PromoID
    PromoName
    1
    Promo1
    2
    Promo2
    3
    Promo3
    4
    Promo4
    I have a Promo Lines table (This is lines for promotion but here is the confusion):
    PromoID
    LineNum
    ItemID
    Activity
    1
    1
    Item1
    Activity2
    1
    2
    Item2
    Activity1
    1
    3
    Item3
    Activity3
    2
    1
    Item2
    Activity2
    3
    1
    Item3
    Activity1
    3
    2
    Item1
    Activity3
    4
    1
    Item2
    Activity2
    4
    2
    Item1
    Activity1
    I have a Transaction table "Sales Order Trans Table". This will be used to create "SalesOrderLine" Measure group (Fact) :
    SalesOrderNumber
    SalesAmount
    ItemId
    SO1
    100
    Item1
    SO1
    234
    Item2
    SO2
    345
    Item3
    SO2
    456
    Item1
    SO2
    567
    Item2
    SO3
    234
    Item2
    SO3
    345
    Item1
    SO3
    343
    Item3
    SO4
    234
    Item2
    SO4
    765
    Item1
    SO5
    567
    Item3
    SO5
    345
    Item2
    SO5
    234
    Item1
    Now in my cube I need these :
    Item Dimension :
    ItemID --> ItemID column of Item Table
    ItemName --> ItemName column of Item Table
    SalesOrderLines Measure Group
    Sales Amount --> Sum on SalesAmount column of Sales Order Trans table
    Sales Lines Count --> Count of rows of Sales Order Trans Table
    Promo Dimension:
    PromoID -->  PromoID of Promo Table
    PromoName --> PromoName of Promo table
    Activity --> Activity of Promo Lines Table
    Solution I have thought
    The Item dimension is straight forward and relation with Measure group is a regular on ItemId --> ItemId. So no issues here
    The Promo dimension  can be made easily from Promo table with promo Id as Key column. The relationship with fact is confusing me.
    For the Promo Dimension, Since it is many to many relationship between Promo and Item , I initially thought of using the PromoLines Table as a Fact less fact Measure group and using that as intermediary measure group in a Many-to-Many Dimensional usage between
    the Promo dimension and SalesOrderLines Measure group.
    The problem is the Activity attribute that is required on Promo dimension. if I use the PromotionLines in the dimension, I will get the activity, but what will I keep as key attribute(As One attribute is related to one or many lines).
    I am very confused with this. Any thoughts on how to resolve this or any suggestion will be very helpful.
    Thanks,
    Girija Shankar
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

    You are on the right track. Create the SalesOrderLine measure group. Create the Item dimension. This will be your intermediate dimension. Create a measure group off PromotionLines with a hidden count measure. This is your intermediate measure group. Create
    a dimension off the Activity column (that's the key) and relate that dimension with a regular relationship to the PromotionLines measure group. This will be the first many-to-many dimension in SalesOrderLine. Create a Promo dimension with a regular relationship
    to the PromotionLines measure group and a many-to-many relationship to SalesOrderLine. This is the second many-to-many. Both m2m dimensions resolve through the same intermediate measure group.
    http://artisconsulting.com/Blogs/GregGalloway

  • Part 2: Flat files and Business Contents: Any issues with this scenario?

    I will appreciate some clarification on the some points made in response to my previous post "Flat files and Business Contents: Any issues with this scenario?"
    1.
    " ...you’d better analyze those cubes for data redundancy and presence of data you’ll never use. " I will appreciate some clarification on the type of analysis you are referring to. Examples will help.
    2.
    "If you want to combine several found IOs in your custom dataprovider, then again you must know (or figure out) relationships between these IOs." I will appreciate some clarification on the type of relationship you are referring to. Examples will help.
    3.
    I am a bit confused with "..include into ODS structure ALL fields required for the cube" but you also noted noted that "...except navigational attributes and chars and KFs that are going to be determined in TRs or URs."
    If you exclude ALL these, haven't you excluded all the fields you included in the ODS structure?
    4.
    "Consider carefully the ODS’ key fields selection. Their combination should not allow data aggregation that you don’t need."
    I may be missing the point here, I understand that you need to select the fields which will form the unique ID for the records in the ODS under the Key Field (please correct me if I am wrong with the purpose of the Key Field), but I don't understand the discussion of "aggregation" in the context.
    Thanks in advance

    Hallo
    I try to give some exaplanation based on the previous answer.
    1. Data redundancy - make sure you do not store the same information. does not make sense to have data redundanty across you Data Warehouse. this is also a cost. just sotre the same information one time if you get all what you need.
    2. whatwhever you build you dp, which consist of IO, you need to know with kind of relation (1:1 or 1:n - n:n and so on) exist between them. that will help you when you model you infoprovider. For example I would never pit togheter IO (n:m) in the same dimension if you expect an high number of cardinality. Sometime an IO can be an attribute of another one (depend on relation. For example
    Business Partner and his Address. Usually you have a relation 1:1, in this case address is an attribute of BParten and store it in the Masterdata instead then DP
    3. Sometime when you load from ODS to CUBE, you can fill some IO (which are in the infocube and not in the ODS)through ABAP routine in TR-Start Routine of Update Rule. Does not make sense to include these IO in the ODS as they are NULL or Blank (the deault value). This can happen when for example, you first load in the ODS (Price and Quantity) and then you calculate Sell price later (Price * Quantity). of course it could be doen also in the Bex. Depends on other factors (Performance - Loaidng -Sizing)
    4. Make sure that the KEY definition of ODS is accordingly to the data otherwise you will aggregate the data and later maybe if you need the detail you miss it.
    for example: customer - product - Distr Chan - Sell Price
    if each Customer can buy each product for any Distrution Channel, then when you build your ODS(Customer - Product and Distribution must be KEY) otherwise (if you have only Customer - Product KEY for example) you will lose the details for Distribution Channel.
    I hope eveyrhting is clear
    Regards
    Mike

  • HT4236 on syncing photos to my iphone from my mac (iphoto), just 2 or 3 per event retain the edited verisons, the rest are shown in the original version. I'm confused by this. Is this a bug? Is there a way to see all the photos on the mac-edited version o

    on syncing photos to my iphone from my mac (snow leopard) (iphoto), just 2 or 3 per event retain the edited verisons, the rest are shown in the original version. I'm confused by this. Is this a bug? Is there a way to see all the photos on the mac-edited version on iphn?

    Thanks for your reply
    I solved my problem,
    Definitely a bug in syncing through itunes.
    - Connect Iphone with MacBook Pro through USB
    - Go to iphone on itunes, photos, deselect photo synchronization.
    - Sync (all pics will be removed from iphone)
    - Close itunes, iphoto, disconnect iphone
    - Select in finder: (home)-pictures-iphoto library.
    - Sec click on iphoto library and choose "show package contents"
    - Delete iPod Photo Cache
    - Close finder
    - Empty trash
    - Reconnect iphone
    - Allow photo synchronization again and everything works smooth.
    After this, changes made in iphoto are instantaneously reflected in iphone photos.
    Once every hundred photos, one gets detached from iphoto and then changes are no longer reflected (buggy) :-(
    In this case I erase the photo in iphoto, sync, go back to iphoto trash, reestablish the photo from the trash and sync again.
    Hope this improves. Still have to try cloud though.
    Thanks
    RC

  • How to implement this Scenario(JMS to IDOC)

    Hi Frnds,
    I am working on one scenario JMS to IDOC .based on JMS Message my XSLT Mapping will genarate Multiple Idocs(max 3) or 2 or one.
       I have to send this IDOCS based on some conditions,the conditions mentioned below.
    xslt mapping genarats one message ,but this contains 3 IDOCS or 2 or 1.(Order Create , Order Change and Order Response),
    what is the best approach to implement this scenario
    1)f Order Create  segment exists (new PO), first check SAP to see if PO does actually exist using RFC Z_BBPR46_GET_PO_FROM_FPA ,If it does not exist, pass Order Create idoc to SAP to create new purchase order
    If it does exist, retrieve PO details from RFC and pass Order Change idoc to SAP to update existing purchase order
    2)If Order Change segment exists (change PO), retrieve PO details using RFC Z_BBPR46_GET_PO_FROM_FPA and pass Order Change idoc to SAP to update existing purchase order
    3)If Order Response segment exists (goods movement), retrieve PO details using RFC Z_BBPR46_GET_PO_FROM_FPA and pass Order Response idoc to SAP to create goods movement.
    Above logic i implemented in one mesage mapping Source is XSLT Mapping Output and Receiver message in message mapping is Multimapping selected 3 IDOCS.
    Regards,
    raj

    thanks

  • Help required specifying Transation attributes for this scenario

    Hi ,
    I am trying to create/update rows in a database using BMP and CMP beans.
    A business method ( Method1 )in session bean calls a non-business method ( Method2) in the same session bean which inturn calls an EntityBean ( EB1-BMP) . EB1 can throw a certain business exception upon which , the Method1 in the session bean calls another EntityBean in a loop( EB2-CMP).
    The problem is that , when the EB1 throws the business exception, i am getting an exception ( part of the stack trace attached below ).
    Could any please explain what should be the transaction attributes to be specified for this scenario.
    Using RequiresNew for the EntityBeans would not work ( or would it ?? ) because the entity bean is being called in a loop and the commit or rollback should happen for all the methods.
    I feel the problem should be solved by specifying the transaction attribute for Method2 ( non business method in session bean ) as Required, but i guess this is not possible.
    How exactly will the transaction behave in this scenario, is the exception caused because EB1 has thrown an exception and i am trying to continue the transaction.
    Could someone please suggest a solution or workaround for this problem.
    Regards,
    Harsha
    ---- Begin backtrace for nested exception
    java.lang.IllegalStateException
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1694)
    javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@28d16547
    .

    tryout business method ( Method1 )in session bean with transaction as RequiresNew.
    catch exception in Method2 originated from EB1-BMP
    make the method in EB2-CMP as Required/Mandatory
    I have made a guess here so just tryout and let me know if works.
    Its recommend that not to use both BMP's and CMPs in your application. Have any one either.

  • Integrated Configuration - Possible for this scenario?

    Hi experts,
    Could you please tell me if Integrated Configuration would work in this scenario, if so could you please tell me how.
    A file is read and accordingly a RFC call is made. The response of the RFC is used to determine receivers. The receivers are other RFC's and IDoc's to different systems.
    I was planning to use the receiver determination step in BPM to achieve this.
    I am on PI 7.11
    Thank you.
    Radhika.

    > Could you please tell me if Integrated Configuration would work in this scenario, ...
    No. You cannot use IC in combination with BPM.

  • How to use Oracle Spatial in this scenario

    My scenario is like that:
    I'm very new to Oracle Spatial
    I'm building an application that will be based on asp.net.(I am
    confident about .net)
    As per my client requirement there are some kml file in one archive
    folder.
    Let me give an example:
    say there is a kml file for region A.(latitude say 36 n to 40 n and
    longitude is 110 w to 115 w) already in the archive folder.
    Now if a new kml file(say A1.kml) that has been created by the user
    and say its latitude and longitude are respectively 37n and 112w. As we clicked A.kml, google earth is opened up for the region A and as
    we move our mouse cursor to more deeper more polygons are visible.
    eventually polygon for A1.kml is also visible and definitely which is
    inside the polygon for region A.
    How can I achieve this thing by using oracle spatial 10g? ---(it's one of my senior's advice to use "oracle spatial 10g" in this scenario)
    I'm not too sure whether I can able to make it clear to u about my
    situation; plz xcuse me if I'm wasting ur valuable time.

    Hi,
    This link helped me a lot!
    http://www.oracle.com/technology/pub/articles/rubio-mashup.html
    Hope it could help you too.
    Best regards,
    Luiz

  • How to setup RDP or VDI services in this scenario

    Hi there! I've this scenario:
    a. 20 thin clients (with OS Windows 7 Embedded Edition)
    b. Two physical servers Core1 and Core2, with 64GB of RAM, 2 socket CPU, 8 cores, OS Windows Server 2012 R2, and HyperV roles
    c. two domain controllers as child virtual machines with 2 GB running (PDC on Srv1 and BDC on Srv2)
    d. ExchangeServer 2013 running as child vm on Core1, with 32 GB RAM.
    I've licenses for Windows Server 2008 R2, and Windows Server 2012, and MS office 2013
    I want clients, after to connect with RDP, to use outlook 2013 for emails.
    Now, i want to setup services for 20 thin clients. This is new for me...and i want your suggestions how to setup up them on this scenario. Have i to use RDP services, or VDI???
    Regards!
    Lasandro Lopez

    Hi,
    According to your comment, I can say that Share permissions are automatically set up by the management tools once it will be created. We can use windows PowerShell or server manager to manage UPD. Also remember that User profile disks are for a single collection
    only. A user connecting to two different collections will have two separate profiles.
    Here providing important link to understand UPD. (You can refer below link for Server 2012 R2)
    1.  Easier User Data Management with User Profile Disks in Windows Server 2012
    2.  Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks.

  • How do we map this scenario

    i have a scenario,
    A material is booked by the customer, customer pays some down payment and then customer takes finance from bank. bank approves for finance and release letter to us saying they are responsible for the balance amount. on that basis material is released to the customer.
    and then once invoice is generated bank pays to the company
    how do we map this scenario
    thanks

    Dear varada rajan  
    You can map this scenario in easiest way:
    1) Create different payment terms as per requirement.
       i.e. 25% Advance balance after delivery, 10% Advance balance after invoice. etc.
    2) Create Order with required payment terms.
    3) Capture advance payment against this order no. in F.28.
    4) Create Performa invoice to issue your customer to Banker.(Proof to Banker).
    5) Do PGI
    6) Create Invoice.
    When your posting balance amount in FI it will give warning message that we have received advance of so and so.
    I think this is sufficient to map your scenario instead of going for downpayment and all.
    Reward if use full.
    Regards,
    Srikanthraj

  • Programming logic for this scenario

    hi all,
    kindly help me with this scenario:
    i have a internal table with fields like this (among others)
    OBJEK                        ATINN         CHAR                                  CHARG            CHAR1
    000000000000000031 0000000188  Batchnumber: WEEK NO. 9  0000000052
    000000000000000031 0000000189  Visualinspection: OK            0000000052
    now wht i need to do is for SAME batch number i need to concatenate the values of CHAR into CHAR1.
    that is to say that CHAR1 shud have the value "Batchnumber: WEEK NO. 9 Visualinspection: OK"
    ive right now done it using 2 different internal tables and concatenating the values. want to know if theres an easier and simpler way.
    any pointers guys??
    pk

    solved it myself
    thanks to sujatha reddy's post in the following thread:
    Re: at end of  statement
    pk
    Edited by: prashanth kishan on Jul 11, 2008 9:19 AM

  • HI Experts Explain  this Scenario

    THIS SCENARIO IS POSSIBLE WITH BPM. ANY BODY HELP ME TO SOLVE THIS PROBLEM
             EP SYSTEM  -
    REQ-->      XI System               -REQ-> FILE RECEIVER      
                                   <--RES     XI System             <--RES---   FILE SENDER <-- HTTP PAGE
    Business flow: our client  has two web sites, it contains .txt and .xls files. When the EP(Enterprise Portal) people will trigger  the req for the text and exel files. we need to pick the files, convert them into XML format and send to the EP system.as a response.
    I am Trying the Scenario like the above stated figure.........will it works?
    From EP system i am sending the OB_SY_MI. xi system will receive the dummy REQ from soap and send to file reciver. actually file receiver is no need.  file sender is main here. FILE SENDER will pick the files from the http page, these files are in http links. here iam using the wget os command to pick the files from the links( run os command before msg processing) and place it in specified directory. from the source, file adapter will pick and convert the text to xml using content conversion. but the problem is EP is OUTBOUND and FILE SENDER is also OUTBOUND. who will receive the FILE SENDER MSG into the BPM. how can i create the BPM. is this scenario is possible or not.  If it is posiible, Explain the BMP steps FLow for the scenario

    a) For txt file. to xml
    File Sender (FCC)  ---> PI  --> (HTTP or webservice) to post the data to EP
    Basically EP using application logic to create file in the file system. You configure PI to pick up the file using file sender / fcc message protocol  and it will convert .txt file to xml. In the receiver side use HTTP adapter to post the message to EP. If the EP supports web services then you can use SOAP to consume the EP's web service.
    b) For converting Excel file to XML same procedure as above. Only thing you need some external tool to convert the excel to xml
    Follow this [link |http://wiki.sdn.sap.com/wiki/display/XI/CODE-CreateanExcelFileviatheJExcel+API]

  • What’s the best practice for this scenario?

    Hi,
    My users want the ability to change the WHERE and/or ORDER BY clause at runtime. They may define user preferences on each screen ( which is bind to a view object). They want to see the same records based on WHERE/ORDER BY defined on the last visit. That is why I keep the users preferences and load the screen based on that, using :
    View.setWhereClause(...);
    View.setOrderByClause(...);
    View.executeQuery();
    This works good when only one user working with the application but faced low performance when more than one user working with the application.
    What are the points to increase the performance and what is the best practice for this scenario?
    Thanks for your help in advance.

    Sung,
    I am talking only about 2 users in my testing. I am sure i missed something but could not recognize that.
    This page is my custom query page including a tag to instantiate app module in stateful mode at the top <jbo:ApplicationModule..> and a tag to instantiate data source <jbo:Datasource...> and release tag at the bottom <jbo:ReleasePageResources..> and some java code in the middle(body). The java code constructed the query statement and then fires the query to set the view object based on the query statement using the above methods.
    So, I am facing very slow performance(speed) when two clients load this page at the same time. Looks like the entire application locks for others when one client load this page and fire the query. i realized the battle neck is where executeQuery() is executing.
    what do you think.
    Thanks in advance for your comments.

  • Hello can anyone explain me how to solve this scenario.

    Hello Experts,
    Today i have attended an interview .. the interviewer has given me this scenario and gave me a system and asked me to solve this scenario practically..
    So this is the scenario.. How to solve can any one send me some idea and if possible probable solution..
    <b>scenario.</b>
    IBM sells Notebooks and Machines through dealers.they provide direct selling to corporates.
    .they give 10% discount to orders of 10 pcs and more.
    <b>scope</b>
    <b>.masters</b>
    maintaining dealers
    maintaining product list and price
    maintainig corporate details.
    <b>transactions</b>
    no of orders placed and delivery date.
    <b>reports</b>
    . dealer wise order report
    . company stock report
    .sales report monthly and yeraly wise.
    So what i am asking you is kindly guide me how to approach to solve this scenario.

    this is the exception,I don't know why this exception exist sometimes and isn't exist sometimes
    java.io.UTFDataFormatException
         at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:2963)
         at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2888)
         at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2701)
         at java.io.ObjectInputStream.readString(ObjectInputStream.java:1536)
         at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1344)
         at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:540)
         at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:762)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         at REDCSecurity.RSAKeyPair.readFromFile(RSAKeyPair.java:122)
         at REDCTools.USBHandler.getPrivKey(USBHandler.java:99)
         at REDCClient.Disconnected.compare(Disconnected.java:289)
         at REDCClient.Disconnected.authenticate(Disconnected.java:185)
         at REDCClient.Disconnected.connect(Disconnected.java:75)
         at REDCClient.ConnectionAgent.connect(ConnectionAgent.java:28)
         at REDCClient.testConnect.main(testConnect.java:13)

  • Skype Business - Is this scenario possible?

    Hi,
    Good evening! I'm running a company based in Australia and I'm fairly new to telecommunications so I'd like to know a few things about Skype Business. 
    I'd like to know if this scenario is possible with Skype Business or any related information to this query.
    I have a 1300-number (or a hotline) where anyone can just ring one or a universal number wherever they are in Australia. Now, let's say, a caller rings the 1300-number then that call would be transfered through Skype to be received by my virtual assistants overseas. So my virtual assistants only have to do is be online on Skype to be able to pick up any phone calls from Australia.
    Thank you in advance!

    1-300 number? I don't think so, you may need to have a Skype online number.
    Want to record Skype calls, check out at:
    hereandhere

Maybe you are looking for

  • Cannot send emails from my new ipad but can receive them. iPhone 5 ok. Both iOS 6

    Can't send emails from my new ipad but can receive them. I've checked the settings and username and password are setup correctly. My email account is with tiscali. My iPhone 5 is setup the same but works ok.

  • "Memory  Sizing" error on Sun Fire V65x

    Hello. I have some trouble with my old Sun Fire V65x and i hope that you guys can help me out. I had 2,5GB RAM installed in my server, working flawless. 2 x 256MB and 2 x 1GB modules. 256-modules in Bank 1 and 1GB´s in Bank 2. To get rid of the boot

  • How do I get rid of....

    How do I get rid of email addresses that have only been used once or twice that are not in my contacts? I've cleared cookies, cache and everything else I can think of. Anyone have any suggestions? Thanks!! Stephanie

  • How unrealised sales is handled by SEM - BCS?

    Hi all, For intercompany transferred of inventory at profit, there are two elimination involved:- - Unrealised Sales - Unrealised Profit & Loss In SEM BCS, elimination of unrealised profit & loss is handled by IPI. How about unrealised sales? Many th

  • What are metaviews in idm6.0?

    Metaviews are added in idm 6.0..what is a metaview and what is its advantage? Yash