[VS2013 Update4] HTML Client loading child and grandchild entities in separate OData requests even when not needed?

Repro steps:
create new LightSwitch HTML C# app
Attach to Northwind OData service - http://services.odata.org/V3/Northwind/Northwind.svc/
include Order_Details, Orders, and Customers
add screen -> browse data, choose Order_Details
in the tile list that comes up, add other screen data, Order.Customer.ContactName
delete the 3 columns it added by default (deleting them isn't necessary to cause the issue, just makes the issue more obvious)
F5 and F12 in the resulting browser and make sure to check the Network tab
The resulting tile list shows just the contact names of the customers for the orders, as you'd expect, but they fill in slowly instead of all at once.
In the Network tab, you'll notice the first data request is what's expected in terms of including the associated child and grandchild entities
http://localhost:54553/NorthwindEntitiesData.svc/Order_Details?$expand=Order/Customer,Order&$top=45
Now, I'm a little confused at this point why it's not using $select to only fetch the particular properties needed, instead of it including all the Order and Customer properties as well, but that's secondary to this particular issue.
If you check the response, you'll see that the JSON returned definitely includes (as you'd expect) the Order and Customer, and the Order.Customer.ContactName in particular is definitely included - here's the first few lines of the response (reformatted to
be readable)
"odata.metadata": "http://localhost:54553/NorthwindEntitiesData.svc/$metadata#Order_Details",
"value": [{
"Order": {
"Customer": {
"CustomerID": "VINET",
"CompanyName": "Vins et alcools Chevalier",
"ContactName": "Paul Henriot",
After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
...etc...
As you'd imagine, these requests have a pretty big negative effect on performance, especially if you have multiple columns exhibiting this effect.
Is this By Design?  Am I doing something wrong?  Is there a workaround for this?
Thanks!

After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
...etc...
This really has bad impact on lightswitch performance, you can submit it to Visual Studio Connect Site, https://connect.microsoft.com/VisualStudio

Similar Messages

  • My iPad says that she is busy and is unable to accept my request even when everything is closed and nothing is being used. What might be the problem here?

    My iPad says that she is busy and is unable to accept my request even when everything is closed and nothing is being used. What might be the problem here?  3 times my iPad has crashed while nothing was open or running and a small loading wheel would be moving signifying that the thing was loading something without permission.  Even when the dang thing was on my personal wireless service that I pay for.

    similar to what is happening to me....the difference is, after restoring itunes detect ipod and ask to restore again and again....
    I know it may look kinda stupid but: just leave the ipod there for about 2 minutes, that's about the time my itunes is taking to detect my ipod...if it doesn't work, try connecting ur ipod to other computer with itunes (no need to sync, just to check if itunes will recognize) to check if the problem is with the ipod or with the itunes and/or computer.

  • Clear history hangs and takes quite a while to complete even when only one site is visited

    clear history hangs and takes quite a while to complete even when only one site is visited . While not a major problem it is annoying

    Hi Frank,
    Does this Release Management performance isssue occurred when you use it at first time? Do you have any setting on your TFS? Would you please tell us your TFS version? 
    If you have any repro steps, please share with us, thank you. 
    Best Regards,
    Dear Molly,
    Yes, this issue has occurred right from the beginning when we started using Release Management.
    Could you please clarify what you mean by "do you have any setting on your TFS"? As far as I know, our TFS installation is a straightforward and normal one.
    Our TFS version is TFS 2013.
    The steps to reproduce (in the simplest scenario) are as follows:
    Create a new project in Visual Studio 2013, containing one PowerShell script file. In the script file, perform a simple command such as "New-Item E:\Temp3 -itemtype directory -force".
    Perform a successful build of the project, making sure that the script file is copied to the drop folder.
    Create a vNext Component in the Release Management Client, that refers to the directory in the drop folder that contains the script file.
    Create a new vNext Release Template in the Release Management Client, containing one "Deploying using PS/DSC" action. In that action, set the PSScriptPath to the script file we created.
    Perform a new Release using the Release Template we just created. The Deploy action will take a long time, even though the script itself takes less than a second to run.
    Please let me know if you need any more information.

  • Would Like to Get Report of Daily Emails In and Out from Members to a DL Exchange version : 2007 I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity is it possible ?

    Would Like to Get Report of Daily Emails In and Out from Members to a DL
    Exchange version : 2007
    I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity
    is it possible ?

    Well, distribution groups don't really have a concept of "in" or "out". They only serve to distribute messages sent to them -- unless you're asking to know who was a member of the distribution group at the time a message was sent to the DL.
    Message tracking logs hold the information you want, though. You'd have to look for EXPAND events that reference the distribution group and take the sender's e-mail address from that event. If the DL is a simple one that's not a member of any other groups
    you could also look for RECEIVE events sent to the e-mail address of the group and get the sender's name from that event.
    You can use Powershell extract the rows of data from the logs, but you'll have to write the code to get the data out of those rows and into a format you want. Perhaps LogParser could be useful in place of Powershell?
    --- Rich Matheisen MCSE&I, Exchange MVP

  • I downloaded the new 7 update and now my iPad won't charge to 100% and loses power even when not in use ?

    i downloaded the new 7 update on my ipad. it now will not charge to 100% and loses power even when not in use. any solutions ??

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.
    Then plug it in and let it fully charge.

  • Macbook air runs hot and makes noise like processor running hard when connected to display - even when not actively using air book

    macbook air runs hot and makes noise like processor running hard when connected to display - even when not actively using air book

    You could use the free tool iStat Pro to see what changes when you connect your MBA to the display. Without doing anything the CPU pane should show a high percentage for "Idle". If the idle value is too low, launch the Activity Monitor and sort by CPU usage. There is a pane showing the different temperatures of your computer. Watch them for a few minutes after connecting the display.

  • LightSwitch HTML Client pubished on azure get an 400.0 bad request error

    Well, I have this problem: "Request failed with status code '400' and the status text 'Bad Request'." when I run my LightSwitch HTMLClient application that are published in Azure Web Applications.
    I already look everywhere for 3 days and still could not find the answer to this problem.
    I hope someone in this forum can help me.
    Thanks.

    Hi, thank you for respond.
    let's see, the fiddler throws these:
    NOTICE: Don't follow the links, they are dummies
    GET http://myapp.azurewebsites.net/ApplicationData.svc/$metadata
    400 Bad Request (text/html)
    The Request
    GET /ApplicationData.svc/$metadata HTTP/1.1
    MaxDataServiceVersion: 3.0
    Accept: application/xml
    Referer: http://myapp.azurewebsites.net/HTMLClient/default.htm
    Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
    Connection: Keep-Alive
    Host: myapp.azurewebsites.net
    Cookie: ARRAffinity=354b4b5b87b2f1e4e8b6c19a5566c6e055bf3e4047b54b4d2ea846ba1b33d561; msls-client-parameters=preferredLanguage=es-MX; ASP.NET_SessionId=bkf52whz0rkufhcxmqrfuirm
    The Response
    HTTP/1.1 400 Bad Request
    Cache-Control: private
    Content-Type: text/html
    Server: Microsoft-IIS/8.0
    X-AspNet-Version: 4.0.30319
    X-Content-Type-Options: nosniff
    X-Powered-By: ASP.NET
    Date: Wed, 01 Apr 2015 04:23:39 GMT
    Content-Length: 1647
    Connection: Keep-Alive
    The azure logs, the lightswitch diagnostic and the debugger not show any difference from these.

  • Why not keep Forms Central as a separate product to stand and sell on its own. I use it for client information to process their data-ptocessing in my mailing business; do not need or want electronic tabulation. I would be happy to pay several hundred doll

    I use a Forms Central form to ask questions of clients to return with their mailing database; tabulation is not wanted or required. From the answers and boxes marked, I have most or all the information to process data in accordance with the United States Postal Service. After, I return the data and paperwork including eDoc worked so that my company wins, the US Postal Service and my client (and possibly their client) wins! If Forms central was simply an interactive forms builder used for direct B2B or B2C information, it would be a winner. If I wanted SurveyMonkey, then would get it but I and others like me do not need or want tabulation services as I assume Adobe looked at Forms Central as a cash cow; it isn't that at all for me.

    I use a Forms Central form to ask questions of clients to return with their mailing database; tabulation is not wanted or required. From the answers and boxes marked, I have most or all the information to process data in accordance with the United States Postal Service. After, I return the data and paperwork including eDoc worked so that my company wins, the US Postal Service and my client (and possibly their client) wins! If Forms central was simply an interactive forms builder used for direct B2B or B2C information, it would be a winner. If I wanted SurveyMonkey, then would get it but I and others like me do not need or want tabulation services as I assume Adobe looked at Forms Central as a cash cow; it isn't that at all for me.

  • Loading DAO and SQL on demand for the request

    Hi,
    I have a requirement, where I need to load the SQL queries for the specific DAO on demand when the request has been made. This will ensure that I am not loading all the objects as I will be loading only the objects which I am going to work with. That is the main idea behind this operation. I am using JPA for back-end which connects to Oracle DB. Whether it will be better to load all the module specific DAO's on-demand using lazy-init="true" in Spring and load the specific SQL queries for those DAO's? In hibernate we are using named queries. Hence, please do suggest me how we can go about this?
    Whether it is better to load the DAOImpl and specific SQL for those DAO on demand (lazy-init="true")?If that is the case how we can do it? Please give me some examples on this? Whether we need to configure the named SQL queries in text file or XML? Which one will be better.Also suggest me which will be the best way of handling this? Any ideas are really appreciated.
    Thanks.

    I am unclear on if this question is a JPA question or a Spring/Hibernate question. If it is the later, you might try asking elsewhere, as this is a TopLink/JPA forum - TopLink is a JPA provider that includes EclipseLink. If it is JPA, you might make your question more clear, as JPA does not allow defining named queries in a text file and defining a query will not return entities from the database. JPA does allow defining queries in orm.xml or though annations on the entities themselves, and in JPA 2.1, you can add named queries in code. And entities are only returned when the query is executed, so you might want to explain a bit more what you are trying to avoid loading.
    Best Regards,
    Chris

  • When using Firefox, PDFs won't load natively on Mac Mountain Lion (10.8.2), even when all add-ons are disabled. No issue using Firefox on PC

    Whenever I click on a web link, do download a PDF form, for example, I get this error message:
    "We are sorry, but Adobe Reader is unable to show documents in this browser configuration.
    Please use your browser to download this file and open it in Adobe Reader or Adobe Acrobat.
    To avoid this message in the future, many browsers provide a way to turn off certain add-ons, and some are able to show this document natively. Please contact your browser vendor for more details."
    This problem only manifested recently. I have recently added Adobe CS6, but the problem manifests itself even when this is disabled. Any help much appreciated.

    The Adobe Reader plugin may not be working properly on Mac.
    * https://support.mozilla.org/kb/pdf-files-are-blank-and-cant-be-downloaded-mac
    * https://support.mozilla.org/kb/Opening+PDF+files+within+Firefox
    Disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    PDF files may be found under entries like Portable document or Adobe PDF document.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader

  • My music and video i save on my ext, drive when i need i drag folder i want to itunes and sync, how come now it's save on my pc and took alots space? how can do like beore iphone 4 did not do like that

    my video and music i save on my ext drive when i want to sync to my phone or ipad i drag folder into play list itunes and sync, before it did not save on my pc but now it save on my pc drive and took alots space, how can i do all my folder music and video did not save on my pc and into my ext,drive? please help me
    Thanks
    MPHU

    Hi MJPHU,
    I understand that when you want to move music or video from your external hard drive to sync with iTunes, that media is staying on your computer and taking up hard drive space. In this situation I would recommend changeing the location of where iTunes looks for the media. This way you can sync anything you want without dragging files to your computer hard drive. If the external drive with the media is connected, iTunes will sync directly from there. The following article explains how to change the location of where iTunes looks for your media.
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/ht1364
    Thanks for reaching out,
    -Joe

  • IPhone bluetooth lowering volume and fans even when not getting a call

    Have a friend where when he gets into his car, his phone is even turning the radio volume down and lowering the fan speed even when he doesn't get a call, so he has to keep turning bluetooth or his phone off so it won't mess with that stuff.  Before it would only do that when he would receive a call.  Any idea what might be doing it?

    What indications does your friend have that his phone is causing that?
    It's possible - maybe an alert/notification that is coming through is causing it.   The sound is trying to play through the bluetooth instead of the handset.   Tell him to mute his phone.

  • Keep getting a prompt to install java even when not surfing the net. I have java installed and the control panel says it is right version. Want to know how to stop prompts. This started after I installed Yosemite.

    Since installing Yosemite I keep getting a prompt to install Java even when I am not surfing the net. Went system preferences and I have recommended version installed. I want to know how to stop the prompts. I do not have this problem on my iMac.

    Most likely, you have either the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. Both depend on the Java runtime distributed by Apple. If you no longer need the plugin, remove it. Otherwise, install Java.

  • Automatically connects to sync and will start playing music all the time even when not using sync

    My iPhone 4S will automatically start playing music as soon as I start my vehicle with sync.you can't hear it but on the screen it shows its playing even when listening to the radio

    Try resetting it if you can: hold the on/off and home buttons until you see the Apple logo (ignore the off slider that appears first), then release.  If you can't, try to connect it to iTunes, go to the Summary tab of your sync settings and click Restore to restore it.  If that doesn't work you'll have to force it into recovery mode to restore it as outlined here: http://support.apple.com/kb/ht1808.
    You can check in iTune to see if you have a backup.  They are listed in iTunes>Preferences>Devices.  However, the backup may not bring your contacts back as contacts are only backed up as necessary to preserve the recent call and call favorites lists.

  • I have updated ipad3 to ios7 and now battery drains very fast even when not in use

    Why is my battery draining so fast even when I'm not using it . last night I put it down with 45% and woke up to dead battery. I upgraded to ios7 last week. I have ipad 3.thanks

    Hi!
    I have an iPad 3,3 GSM. I didn't update it since iOS 5.1.1. iPad works almost a week for me. And updated it to 7.1 at last Friday.
    After update my battery drains notable fast. ~10-12% overnight(~8h) in standby mode. I've tried to turn off parallax, all location services and background apps. But nothing's changed.
    So I''ve found that in usage section I ve almost the same values of usage and standby time. And I realized that one thing that drains my battery is "Find my ipad" service!!! I turned off it and my ipad works as with iOS 5.1.1:
    2% overnight max!! And now it's drained only 14% after 4h20m of usage with parallax turned on! (yes i've only surfed web and read a book but nevertheless)
    So it's your choice what to prefer - be sure that your ipad either protected from stealing or long battery life!

Maybe you are looking for