Using Table.Join formula takes extremly long time to get results.(Why Query Folding doesn't work?)
Hi,
I built a query with 4 tables inside (load from Oracle DB and two of them are quite big, more than millions of rows). After filtering, I tried to build relationships between tables using Table.Join formula. However, the process took extremly long time to
bring out results (I ended the process after 15 mins' processing). There's a status bar kept updating while the query was processing, which is showed as . I suppose
this is because the query folding didn't working, so PQ had to load all the data to local memory first then do the opertion, instead of doing all the work on the source system side. Am I right? If yes, is there any ways to solve this issue?
Thanks.
Regards,
Qilong
Hi Curt,
Here's the query that I'm refering,
let
Source = Oracle.Database("reporting"),
AOLOT_HISTS = Source{[Schema="GEN",Item="MVIEW$_AOLOT_HISTS"]}[Data],
WORK_WEEK = Source{[Schema="GEN",Item="WORK_WEEK"]}[Data],
DEVICES = Source{[Schema="GEN",Item="MVIEW$_DEVICES"]}[Data],
AO_LOTS = Source{[Schema="GEN",Item="MVIEW$_AO_LOTS"]}[Data],
Filter_WorkWeek = Table.SelectRows(WORK_WEEK, each ([WRWK_YEAR] = 2015) and (([WORK_WEEK] = 1) or ([WORK_WEEK] = 2) or ([WORK_WEEK] = 3))),
Filter_AlotHists = Table.SelectRows(AOLOT_HISTS, each ([STEP_NAME] = "BAKE" or [STEP_NAME] = "COLD TEST-IFLEX" or [STEP_NAME] = "COLD TEST-MFLEX") and ([OUT_QUANTITY] <> 0)),
#"Added Custom" = Table.AddColumn(Filter_AlotHists, "Custom", each Table.SelectRows(Filter_WorkWeek, (table2Row) => [PROCESS_END_TIME] >= table2Row[WRWK_START_DATE] and [PROCESS_END_TIME] <= table2Row[WRWK_END_DATE])),
#"Expand Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"WRWK_YEAR", "WORK_WEEK", "WRWK_START_DATE", "WRWK_END_DATE"}, {"WRWK_YEAR", "WORK_WEEK",
"WRWK_START_DATE", "WRWK_END_DATE"}),
Filter_AolotHists_byWeek = Table.SelectRows(#"Expand Custom", each ([WORK_WEEK] <> null)),
SelectColumns_AolotHists = Table.SelectColumns(Filter_AolotHists_byWeek,{"ALOT_NUMBER", "STEP_NAME", "PROCESS_START_TIME", "PROCESS_END_TIME", "START_QUANTITY", "OUT_QUANTITY", "REJECT_QUANTITY",
"WRWK_FISCAL_YEAR", "WRWK_WORK_WEEK_NO"}),
Filter_Devices= Table.SelectRows(DEVICES, each ([DEPARTMENT] = "TEST1")),
SelectColumns_Devices = Table.SelectColumns(Filter_Devices,{"DEVC_NUMBER", "PCKG_CODE"}),
Filter_AoLots = Table.SelectRows(AO_LOTS, each Text.Contains([DEVC_NUMBER], "MC09XS3400AFK") or Text.Contains([DEVC_NUMBER], "MC09XS3400AFKR2") or Text.Contains([DEVC_NUMBER], "MC10XS3412CHFK") or Text.Contains([DEVC_NUMBER],
"MC10XS3412CHFKR2")),
SelectColumns_AoLots = Table.SelectColumns(Filter_AoLots,{"ALOT_NUMBER", "DEVC_NUMBER", "TRACECODE", "WAFERLOTNUMBER"}),
TableJoin = Table.Join(SelectColumns_AolotHists, "ALOT_NUMBER", Table.PrefixColumns(SelectColumns_AoLots, "AoLots"), "AoLots.ALOT_NUMBER"),
TableJoin1 = Table.Join(TableJoin, "AoLots.DEVC_NUMBER", Table.PrefixColumns(SelectColumns_Devices, "Devices"), "Devices.DEVC_NUMBER")
in
TableJoin1
Could you please give me some hints why it needs so long to process?
Thanks.
Similar Messages
-
# Question
Error,13030 and others: Email -!Sending taking a little longer than usual...
We'll keep trying and let you know when it's been sent.
I am also unable to download (I use Send Space and Mega Upload), plus it takes a long time to get to any page, I have to Reload several times and sometimes it still does not work!
I'm using a PC, XP professional -
I was away for 9 days came home to my computer not responding. I am using the free version of AVG security and read the instructions in the Mozilla help Re: Firewalls, changing the AVG settings removing Mozilla and then adding it back in. However I checked for updates on AVG none were available and the instructions Mozilla has are for a version of AVG that I do not have. I am using 8.5 and I think the instructions were for 9.0. At any rate I am stuck, and desperately need to get this figured out! I hope that this is enough information for someone to point me in the right direction.? Your help is be greatly appreciated. Thank you in advance! Charismeldcorn wrote:
My computer also has been taking a long time to find a wireless network, up to several minutes. I often have to have it "scan" for networks several times before it finally picks it up. Is there a solution? This has been going on for many months. Other computers (PCs, iPhone) pick up the signals within a few seconds, but my Powerbook takes several minutes, even over 5 minutes sometimes.
See how many networks are listed in Sys Prefs: Network: Advance. Drag the preferred to the top. Delete any you don't really need.
Message was edited by: tjk -
I updated my ipad to 7.1 this weekend. I am using the same wireless network, etc.....nothing else has changed but it takes an extremely long time to load itunes on the ipad. Everything from the store itself and the items I have purchased take anything rom 3 to 5 minutes to load.
I have reset the ipad, reset the "network" from the router to the option on the ipad.
Any other suggestions?Check App Store
1. Tap "Settings"
2. Tap "iTunes & App Stores"
3. Tap on your Apple ID
4.Tap "View Apple ID"
5. Enter your user name and password.
6. Tap "Country/Region."
7. Tap "Change Country/Region"
8. Select the country/region where you are located.
9. Tap "Done".
Note: If the change doesn't take effect, sign out of account and sign in again. -
Takes a long time to upload a publish to folder site
i have charter.net internet service...3mb high speed internet service...
i recently built a site that is approximately 19mb...when i use either fetch or captain ftp, it takes a long time to upload (hours sometimes)...most of the time is gets hung up on the .png files...it is as it stops...i have contacted charter about the slowness...there response is we don't support mac...you don't want to know what i told them...
anyway...is there anything i may be missing or don't understand about uploading...the first few times several weeks ago, i could upload a site about half the size in about 10 minutes...charter will not admit anything on their own end...
any ideas would be nice to know...
michaelWell, the 3mb speed that you quote are the theoretical maximum DOWNLOAD speeds. Reality might be a little bit different depending on a host of factors. Anyways, UPLOAD speeds are always capped at some fraction of that just like with asynchronous DSL. But your subjective experiences are still different. As long as it is not reporting out errors and your site is actually being uploaded you should be fine.
As to why it is taking so long....I can't say. At first I was concerned that maybe Charter had a thing about filenames with spaces or a certain length or something. But you tell me, is your site being uploaded? -
Table.Join/Merge in Power Query takes extremly long time to process for big tables
Hi,
I tried to simply merge/inner join two big tables(one has 300,000+ rows after filtering and the other has 30,000+ rows after filtering) in PQ. However, for this simple join operation, PQ took at least 10 minutes (I killed the Query Editor after 10
minutes' processing) to load the preview.
Here's how I did the join job: I first loaded tables into the workbook, then did the filtering for each table and at last, used the merge function to do the join based on a same field.
Did I do anything wrong here? Or is there any way to improve the load efficiency?
P.S. no custom SQL was used during the process. I was hoping the so called "Query Folding" can help speed the process, but it seems it didn't work here.
Thanks.
Regards,
QilongHi!
You should import the source tables
in Access. This will speed up the work of
PQ in several times. -
Query Designer writeing formula takes very long time
Experts,
When i try to write a formula. The query designer is taking very long time to navigate.
One formula is taking 20 mins to write.
1. I have upgraded my laptop memory to 2 GB of Ram
2. I am on 7.10 SP4 Patch 1. Had the same issue with the previous versions.
Please suggest a resolution.
The QD has tested my patence. I am sure no body wants to create a query for 2 days. There has to be a problem somewhere causing this.
Thank you.Vinod,
Save the query and then exit BW sessions, also restart your system.
It might be a problem with main memory of your laptop or BW server load.
But 20mins is too long for any kind of definition in query designer.
Please check these things, perhaps it helps.
Thanks, -
After I turn on my macbook, it takes a much longer time to turn on. I can move around the arrow, but nothing works. I tried to click every app, no response. I have to wait a long time and then everything works. Did I do something wrong?
ThanksStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Does your Apple TV take a long time to get to the main menu?
I have my Apple TV hooked up via HDMI to a Panasonic Plasma. Everything works pretty good except for the recurring missing from devices in iTunes. A restart of iTunes always brings it back.
I'd like to know if my experience with slow start up is normal. When I switch from my regular TV output to the HDMI output for my Apple TV it takes a really long time to start up. I will get my photos that are my screensaver after about 1 minute. Then it takes another minute and a half or more to get to the main menu after pressing the menu button on the remote. Is this normal? Should it be connecting faster? If so, what can I do to the settings to speed things up.
Thanks for the help.
Cheers
mrjazzit can vary depending on the TV you have.
HDMI handshaking isn't the most reliable thing (in any device). -
every time i try to oppen a file like an image or a PDF it oppens by default using oreview built in appliction
occasionally this is accompanied by a long delay after wich the preview oppens every file in the downloads folder and i can navigate through them with ease
i would like to know why the application has this elay i really want to avoid it
because every tome i want to oppen an image there is a risk it would take a minnute or twoIn the finder right click on the iPhoto library and show package contents, find the folder named import (or importing) and drag it to the desk top. Do NOT make any other changes of any sort. Launch iPhoto and you will Be fine. Open the import(ing) folder and if there are any photos in it you need import them to iPhoto then trash the imoort(ing) folder.
LN -
CUCM 9.1.2 DRS backup takes extremely long time to complete
Anybody else noticed that DRS backups from CUCM 9.1.2 to a Windows SFTP server (ex: OpenSSH) takes up to 6-7 hours to complete?
Backup to a Linux SFTP server runs fine.
All backup worked fine on Windows or Linux with CUCM 9.1.1.Hi Sebastien,
Can you try taking the backup on a machine in the same subnet as cucm and see if the issue persists? Have you tried restarting the DRF MA and LA services yet? Openssh is one of the supported options for DRS backup so you can engage TAC if the issue persists. -
Client takes a long time to get network login screen from server
I have just installed the new xserve with 10.5.1
I have configured DNS
My problem is that my client 10.5 takes about 1 and a half minutes to get the network users show up on the login screen.
I have searched through the system logs and found the following. Don't know if these have anything to do with the slow client but it is a start. If anyone can shed some light on this I would appreciate it. Thanks Bails:)
following are some error messages
*_System Log*_
Feb 25 09:27:59 xserve mDNSResponder[30]: mDNSPlatformSendUDP sendto failed to send packet on InterfaceID 00821E00 en0/4 to 224.0.0.251:5353 skt 7 error -1 errno 65 (No route to host) 2628017487
Feb 25 09:27:59 xserve mDNSResponder[30]: mDNSPlatformSendUDP sendto failed to send packet on InterfaceID 00823E00 en1/4 to 224.0.0.251:5353 skt 7 error -1 errno 65 (No route to host) 2628017487
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xa815bf0) failed. *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xa8084e0) failed. *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xa815bf0) failed. *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
Feb 25 09:29:21 xserve [0x0-0x12012].com.apple.ServerAdmin[232]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xa8084e0) failed. *
_*LDAP Log*_
Feb 25 10:49:53 xserve slapd[68]: <= bdbsubstringcandidates: (authAuthority) index_param failed (18)I just guess hete based on the first two logs entries that the server is unable to query DNS. All sorts of DNS lookup failures are a common source of such long timeout errors. It might be because your DNS is not set up right or because the DNS server is not accessible to the server (incorrect routing rules or network settings in general).
-
Crystal Report Takes very long time to display results
Dear All,
I am new to Crystal reports. We have installed Crystal report developer 2008 SP3 on Windows7 Service pack 1. We are creating reports from SAP ECC 6 EHP 4 Ready in Crystal Reports. The problem we are facing is that every report which we have developed in Crtystal reports is taking around 1 to 2 hours to display results. the reports are pertaining to only one day or one month data. we have also switch off "Verify On First Refresh", "Verify Stored Procedures On First Refresh", "Verify Database" and we are also not saving data on report level as per the threads which are already posted in the forum pertaining to our problem.
You are requested to kindly guide me how I can improve the performance of our crystal reports.
Regards,
Danish.You select expert formula says enough. It would appear that little or no data filtering is being carried out on the database server. Thus all records will be returned to Crystal and then filtered locally.
You need to try and incorporate the logic of formula {@Form_PeriodCvn} into the select expert. Or build a view/stored procedure which returns a value compatible with your filtering requirements.
What is contents of formula {@Form_PeriodCvn}
Ian -
It also comes up with an error message once in a while when I try to send something and won't send it but if I click send again then it usually goes out.
Check your firewall and make sure that Thunderbird has full access. (This computer has Norton 360, and the firewall blocked incoming connections)
How many folders are you storing offline? If you have a lot in your trash/spam/sent folders and it is storing offline, maybe that's slowing it down. It wouldn't hurt to check and see if your e-mail provider is somehow blocking Thunderbird. -
Why does it take a long time to get help when you have a problem?
Posted a problem 2 weeks ago why havent I been give a solution to this problem?
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.com/kb/Server+not+found
*https://support.mozilla.com/kb/Firewalls -
Firefox takes a long time to close since a recent update and hogs memory.
Since one of the recent updates that started using plugin containers, Firefox takes a long time to close. If I try to go back it, it tells me it is still running. I liik in Task Manager and about seven plug-in container. exe's are running and I have turned off or disabled mostplugins and addons, even Quicktime. Firefox uses an obscene amount of RAM on my XP machine and has made it sluggish. I use XP SP3. This started after you added the plugin containers in one of the recent updates earlier in the year. For the features it offers me or doesn't offer me, rather, it uses way too much RAM and is too sluggish. And takes a very long time to close out when I close the browser. It uses about twice as much RAM as it used to.
Use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.
See "Hang at exit":
*http://kb.mozillazine.org/Firefox_hangs
See "Firefox hangs when you quit it":
*https://support.mozilla.org/kb/Firefox+hangs
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
*https://support.mozilla.org/kb/Troubleshooting+plugins
Maybe you are looking for
-
Getting correlation error while opening document library in SharePoint 2010
Hi, I installed SQL Server 2008 R2 SP1 and SharePoint 2010 on Windows Server 2008 R2. Everything went fine for first days. Now I am getting error while opening any of the document libraries. However lists are opening fine. Error: An unexpected error
-
Best Practice for Storing Program Config Data on Vista?
Hi Everyone, I'm looking for recommendations as to where (and how) to best store program configuration data for a LV executable running under Vista. I need to store a number of things like window location, values of controls, etc. Under XP I just s
-
Files not getting picked up using Sender Communication Channel frm MDM sy
Hi Experts, XI sender communication channel is configured to pick up any files coming from MDM system from the following path /XXX/XXX/mdm/mds/XXX/XXX/Material_Master/Outbound/P33/P33_R3_PORT/Ready Earlier we had the scenario working properly that cr
-
Best Practice for SOA-oc4j using more than 4 GB
Hi, is there any best practice how to use the SOA container with more than 4GB? Oracle ships only java with 32 Bits...
-
i was using my iphone 4 in sweden with telia and i shifted to portugal,how can i unlock my iphone?