COUNT of Clients whose revenue is 5 million
Hi experts,
I need to find out the output for each of these mentioned below(All these values are calculated for a particular quarter).The requirement is that all these belongs to same report only.
All these Calculations mentioned below are based only on one Key figure REVENUE(Except Added During This Quarter)
Added During The Quarter
Revenue - top client (%)
Revenue - top 5 clients (%)
Number Of Million Dollar Clients
Number Of 5 Million+ Dollar Clients
Number Of 10 Million+ Dollar Clients
Number Of 20 Million+ Dollar Clients
Clients Accounting for >5% of Revenue
1) I need to find out the count of the clients whose revenue is > 1million(>5 M,> 10M and so on). Is there any COUNT option in query designer through which i can achieve this or is there any better way of getting the solution.
2)Revenue - top 5 clients (%)[For a particular Quarter]- ->Need to find the Revenue of top 5 clients . Add them . Divide the result with Total Revenue(from all the clients) and find the corresponding percentage.
3)Clients Accounting for >5% of Revenue[For a particular Quarter]--->Need to Calculate 5% of total revenue, Count all the clients Whose revenue is greater than 5% of revenue and display the count of such clients in the output.
Pls help me in this regard at the earliest.Thanks in advance.
I think you would find it hard to get all these counts / percentages on to a single query, but if you publish your report through Web, you can build the report up with different DataProviders.
Generally, to define each of your key figures you will need to use Exception Aggregation, which includes Count functionality.
Points?
Patrick
Similar Messages
-
Cisco WCS client count report - client count figures cumulative or concurrent?
Hi,
Just want to clarify the "assoicated client count" and "Authenticated client count" values from WCS Client count report concurrent or cumculative?
The client count report in excel format:
Total Client Count
Total Count
Event Time
Associated Client Count
Authenticated Client Count
total
Sun Oct 12 23:59:59 HKT 2014
3992
3854
total
Mon Oct 13 23:59:59 HKT 2014
7838
7289
total
Tue Oct 14 23:59:59 HKT 2014
7724
7124
total
Wed Oct 15 23:59:59 HKT 2014
6849
6336
total
Thu Oct 16 23:59:59 HKT 2014
5908
5530
total
Fri Oct 17 23:59:59 HKT 2014
1240
1228
total
Sat Oct 18 23:59:59 HKT 2014
1040
1031
Client Count
AP Name
Base Radio MAC
Event Time
Associated Client Count
Authenticated Client Count
AP-EDHB-018
08:1f:f3:23:23:10
Mon Oct 13 23:59:59 HKT 2014
160
157
AP-EDHB-018
08:1f:f3:23:23:10
Tue Oct 14 23:59:59 HKT 2014
121
120
AP-EDHB-018
08:1f:f3:23:23:10
Wed Oct 15 23:59:59 HKT 2014
95
95
AP-EDHB-018
08:1f:f3:23:23:10
Thu Oct 16 23:59:59 HKT 2014
94
94
AP-EDHB-018
08:1f:f3:23:23:10
Fri Oct 17 23:59:59 HKT 2014
6
6
AP-EDHB-018
08:1f:f3:23:23:10
Sat Oct 18 23:59:59 HKT 2014
3
3
AP-EDHB-019
08:1f:f3:23:24:30
Sun Oct 12 23:59:59 HKT 2014
38
38
AP-EDHB-019
08:1f:f3:23:24:30
Mon Oct 13 23:59:59 HKT 2014
113
110
AP-EDHB-019
08:1f:f3:23:24:30
Tue Oct 14 23:59:59 HKT 2014
110
109
AP-EDHB-018 have 160 assoicated client count reported. Really mean there were 160 wireless client assoicated at a moment or there were a totally 160 connected at that day?
Any idea?
DickHi Kayle,
Thanks for the response. I think you are talking about this in the above.
Reports > Report Launch Pad > Client > Client Count > Client Count Report Details
then
AP by Floor Area and select "All Campus", "All Building", "All Floor"
By doing this I get 700+ APs daily client count in graphical (pdf) view and need to go through manually each graph to identify the top 50, top 100 in a given day.
Is it possible to only filter the top 50, 100 APs ?
I would like see my daily report gives something similar to the below
AP Name Max Client Count
AP01 96
AP02 83
AP50 20
Would it possible to get something like this from WCS reports ?
Thanks
Rasika -
Server kicks off clients counting each client as two logins
I Have a Mac OSX Server (version 10.3) that has a 20 Client Connection limit. I have 11 client computers all running Mac OSX (also version 10.3). All of the users in these clients are in OpenDirectory and have their home folder on the server. They all also need to access another share on the server all the time. I have Workgroup manager set up to share the required folder and automount it on all clients as /Network/ShareName. All of this works great until I have all 11 clients active at the same time. Apparently each AFP share takes up an individual connection on the server, so nine clients make 18 connections, the server takes up one connection, and the last 2 machines can no longer log in. I have already attempted to change the sharing protocol from AFP to NFS on the secondary share, hopefully circumventing the 20 Client Connection Limit (I didn’t think NFS shares would count toward the total client connection limit, as I thought the total connection limit only counted toward AFP), but as I discovered, the simultaneous client connections govern the whole server, not just AFP. My goal is to make this transparent to the end users who generally know nothing about computers or client/server technology and don’t need to be taught how to use the “Finder -> Go -> Connect To Server” command (and besides, using the Profile tool in Workgroup Manager, this command is disabled for them).
I come from a Linux and Microsoft Windows background and the idea of tracking connections this way does not make sense to me. In Windows a client connection counts for a machine and that machine can use as many resources from the server as they want while still counting as one client connection. And with Linux there is no Client Licensing in this sense. Am I doing something wrong? Is there another solution to map these drives? Coming from my Unix side I thought about just making a link in the users home directories to this share (i.e. /Volumes/Users/<Username>/Share => /Volumes/Share), but when I tried a symbolic link (i.e. ln –s /Volumes/Share /Volumes/Users/<Username>/Share), when it is mapped on the user’s computer it doesn’t work because it looks for the /Volumes/Share on the local computer. And when I tried a hard link (i.e. ln /Volumes/Share /Volumes/Users/<Username>/Share), I got an error message because you can’t link across different volumes. Either of these options would have solved my problem, as would getting each client to only take up one connection to the server even thought they are using two file shares, but I cannot get them to work. Any help in the matter would be greatly appreciated!
Unfortunately, my background with this server and network is limited, as I “inherited” it when the regular network admin moved on. As far as I can tell, the server is setup with a big hard drive split in to three volumes, the Boot volume, the User Homes volume and the Reference Material volume (as I called “Share” above).
\ (Boot)
|
|-Volumes
|-Share
|-Users
I am sure my linking method would work if everything were on the same volume, but this doesn’t really fix the problem, and I am in no rush to backup, reformat and reinstall this computer. In my opinion this isn’t a proper solution either. I also thought about purchasing more Client Access licenses, but I don’t know if they can be easily added or how that would even work, since the client access license limit is hard coded into the server serial number used when originally setting up the machine. Any help in this matter would be greatly appreciated as well.Which version of Mac OS X Server, specifically, are you running?
This article explains that Apple changed (fixed?) the concurrent user count to be based on simultaneous machines, not simultaneous connections in 10.3.3.
Your simplest solution may just be to upgrade the server.
Note also thai the article specifically calls out 'automounted share points'. I don't know if manual mounts count in the same way, but that might be worth looking at. -
Counting connecting clients.
Hi !
Can anyone show me a code to assign a number to different clients connecting to a java server ? I created a server/client pair and want to track the number of clients connecting to the server. A basic code would do.
Thanks,
TrueFaithAnd my solution still applies.
Every time a connection occurs you have, from the socket standpoint, a new client.
Now perhaps you want to track connections via something else besides just connections. For example user name. Or IP address. Or some other criteria.
Then the actual tracking method depends on the criteria. For example if you want to track via IP address, then you could use the IP address itself. Either as is, or convert it to a real number.
On the other hand if you want to use some other criteria then the criteria (or a way to determine that) must come in the data that the socket receives. And it means you must store some sort of information somewhere. One way to do this is to create a table in a table base and use a 'key' field as the number. For each 'new' client a new entry is made. For 'old' clients they are looked up and the existing key is used. A database isn't a requirement but if you already have one it is convenient. This can be an in memory store if the information does not need be maintained if the server bounces (and the possible data set is small enough.)
The above would also apply even if you wanted to use the IP address but you wanted to display a smaller number. (Keeping in mind of course that tracking via IP generally only works for 'real' internet addresses or fixed intranet addresses.) -
Counting rows for db tables with 500 million+ entries
Hi
SE16 transaction timesout in foreground when showing number of entries for db tables with 500million+ entries. In background this takes too long.
I am writing a custom report to get number of records of a table and using OPEN CURSOR concept to determine number of records.
Is there any other efficient way to read number of records from such huge tables.
OPEN CURSOR l_cursor FOR
SELECT COUNT(*)
FROM (u_str_param-p_tabn) WHERE (l_tab_cond). " u_str_param-p_tabn is the table name in input and l_tab_cond is a
DO. " dynamic where condition
FETCH NEXT CURSOR l_cursor INTO l_new_count.
PACKAGE SIZE p_pack.
IF sy-subrc NE 0.
EXIT.
ELSE.
l_tot_cnt = l_tot_cnt + l_new_count. " l_tot_cnt will contain number of records at end of loops
CLEAR l_new_count.
ENDIF.
ENDDO.
CLOSE CURSOR l_cursor.Hello,
For sure it is a huge number of entries!!!
Is any key-fields?
Use a variable to keep a counter of the key-fields , for example row_table and also a low and high variable .
Try to use a do-loop and in this loop use:
do .
low_row = row_table.
low_high = row_table + 200.000.:increse the select every 200.000 entries
Do "select statement into table" based on the key-fields
For example : if the key-field is the docnr,
Do a "select into table itab where docnr >low_row
and docnr < low_high"
Count the lines of itab and keep them in a variable.
free the itab.
enddo
Good luck.
Antonis -
Is there a better approach to show the distinct count measures?
Experts,
I have a requirement in which I want to diplay 20+ calculated columns. The coulmns are something like this..
No of clients with income < 10000 (to check against sales measure in fact table)
No of Clients with sales > 500000 (to check against sales measure in fact table)
No of clients whose join date > 1st jan current year ( to check against cust_start_dt of client Dim)
No of clients with size "Medium" (to check agains a column client_size of Client Dim)
No of clients with sell product units > 500 (Need to check units in PROD Dim)
and so on..
Well, I can write a case statement using expression builder for each column in the criteria, but the report performance is very bad. My client dimension is a huge partitioned table. As I keep on adding columns, the report takes more time to fetch data and at some point it never comes back.
We tried to push to calculations to database, but since users can provide any selection criteria from dashboard prompt, it doesn't seem to work.
If anyone had done any similar request in the past, please direct.Jared,
Thank you for responding to my posted message. Rendezvous is a new concept to me, maybe
it's the solution to my problem. I have been trying to read the on line manual and
example VIs from National Instruments website. I still have a hard time to understand
the concept.
One of the example I saw is using rendezvous to run some sub VIs. But in my case, I have
only one VI that is a while loop. Inside the while loop, there are a few tasks running
simultaneously. I don't know whether it will serve my purpose.
Guangde Wang
Jared O'Mara wrote:
> Guangde,
>
> Referring to your 2nd method, use rendezvous (under advanced>>synchronize
> on function palette) to synchronize two processes. There are good examples
> that come with labview. basically, you cre
ate a rendezvous, giving it a
> size. Using the wait on rendezvous vi, a function will not continue until
> all rendezvous have reached that point. Using this method, you can synchronize
> your 2 while loops.
>
> Jared
>
> Guangde Wang wrote:
> >I tried two ways to control the tempo of my program.>>One is to use the
> While Loop's counter and a wait. The drawback of this>method is the cycle
> length is dependent on the measuring load. So if the>program runs for days,
> it will be significent off the real time.>>The other way is to use the difference
> of the Tick Count. It provides>accurate timing but the problem is the sychronization
> of the clock cycle>and the While Loop cycle. I can try to put a little bit
> wait but still>can not sychronize them very well. So after a while, there
> will be two>measures get together.>>I don't know whether there are some better
> ways to control the program>or whether we have some ways to improve either
> or both of the above
two>methods to make them work better. Please let me
> know if you have any>suggestion.>>Thank you in advance,>>Guangde Wang> -
How to count number of files in a folder?
The folder "_Current Assets" has 16 .wav files and nothing else. I'd like Applescript to get this number.
Below, the code that changed between trials is in bold
*Code tried:*
_Trial 1:_
set theFolder to "Macintosh HD:Users:dannykalman:Desktop:_Current Assets"
set numberOfAudioFiles to count of files in theFolder
display dialog numberOfAudioFiles
dialog says: 0
_Trial 2:_
set theFolder to "Macintosh HD:Users:dannykalman:Desktop:_Current Assets"
set numberOfAudioFiles to count of items in theFolder
display dialog numberOfAudioFiles
dialog says: 56
_Trial 3:_
set theFolder to "Macintosh HD:Users:mr:Desktop:_Current Assets"
set numberOfAudioFiles to count of *(files whose kind is "WAVE Audio File")* in theFolder
display dialog numberOfAudioFiles
dialog says: Can’t get every file of "Macintosh HD:Users:dannykalman:Desktop:_Current Assets".
I'm out of ideas : (. What would you suggest?
Thank you so much!It worked because the path is in the correct syntax. BTW, the count is correct without the -1. Every folder that's been opened has a hidden .DS_Store file (which gets counted) that contains all of its properties, such as view, size, and location. Use the -1 if you want to suppress that file; however, it will count any other hidden ones. For AppleScript queries, use this forum. I had the Hosts move this post to it.
-
How to get total number of result count for particular key on cluster
Hi-
My application requirement is client side require only limited number of data for 'Search Key' form total records found in cluster. Also i need 'total number of result count' for that key present on the custer.
To get subset of record i'm using IndexAwarefilter and returning only limited set each individual node. though i get total number of records present on the individual node, it is not possible to return this count to client form IndexAwarefilter (filter return only Binary set).
Is there anyway i can get this number (total result size) on client side without returning whole chunk of data?
Thanks in advance.
Prashantuser11100190 wrote:
Hi,
Thanks for suggesting a soultion, it works well.
But apart from the count (cardinality), the client also expects the actual results. In this case, it seems that the filter will be executed twice (once for counting, then once again for generating actual resultset)
Actually, we need to perform the paging. In order to achieve paging in efficient manner we need that filter returns only the PAGESIZE records and it also returns the total 'count' that meets the criteria.
If you want to do paging, you can use the LimitFilter class.
If you want to have paging AND total number of results, then at the moment you have to use two passes if you want to use out-of-the-box features because LimitFilter does not return the total number of results (which by the way may change between two page retrieval).
What we currently do is, the filter puts the total count in a static variable and but returns only the first N records. The aggregator then clubs these info into a single list and returns to the client. (The List returned by aggregator contains a special entry representing the count).
This is not really a good idea because if you have more than one user doing this operation then you will have problems storing more than one values in a single static variable and you used a cache service with a thread-pool (thread-count set to larger than one).
We assume that the aggregator will execute immediately after the filter on the same node, this way aggregator will always read the count set by the filter.
You can't assume this if you have multiple client threads doing the same kind of filtering operation and you have a thread-pool configured for the cache service.
Please tell us if our approach will always work, and whether it will be efficient as compared to using Count class which requires executing filter twice.
No it won't if you used a thread-pool. Also, it might happen that Coherence will execute the filtering and the aggregation from the same client thread multiple times on the same node if some partitions were newly moved to the node which already executed the filtering+aggregation once. I don't know anything which would even prevent this being executed on a separate thread concurrently.
The following solution may be working, but I can't fully recommend it as it may leak memory depending on how exactly the filtering and aggregation is implemented (if it is possible that a filtering pass is done but the corresponding aggregation is not executed on the node because of some partitions moved away).
At sending the cache.aggregate(Filter, EntryAggregator) call you should specify a unique key for each such filtering operation to both the filter and the aggregator.
On the storage node you should have a static HashMap.
The filter should do the following two steps while being synchronized on the HashMap.
1. Ensure that a ConcurrentLinkedQueue object exists in a HashMap keyed by that unique key, and
2. Enqueue the total number count you want to pass to the aggregator into that queue.
The parallel aggregator should do the following two steps while being synchronized on the HashMap.
1. Dequeue a single element from the queue, and return it as a partial total count.
2. If the queue is now empty, then remove it from the HashMap.
The parallel aggregator should return the popped number as a partial total count as part of the partial result.
The client side of the parallel aware aggregator should sum the total counts in the partial result.
Since the enqueueing and dequeueing may be interleaved from multiple threads, it may be possible that the partial total count returned in a result does not correspond to the data in the partial result, so you should not base anything on that assumption.
Once again, that approach may leak memory based on how Coherence is internally implemented, so I can't recommend this approach but it may work.
Another thought is that since returning entire cached values from an aggregation is more expensive than filtering (you have to deserialize and reserialize objects), you may still be better off by running a separate count and filter pass from the client, since for that you may not need to deserialize entries at all, so the cost on the server may be lower.
Best regards,
Robert -
List of email clients/address books that will sync with palm desktop 6.2
Is there (and if not, I think there should be) a list somewhere of email clients whose address books will sync with a palm Treo (palm Desktop version 6.2)? I have been happily using various palm handhelds for about 6 years now and have been syncing the address book with Mozilla and now Thunderbird for the last couple years. I currently have an m130, but it's time to upgrade to a "smart phone" as I'm tiering of carrying around two devices. Unfortunately, the Treo requires palm Desktop version 6.2 which is not compatible with the Thunderbird palm sync. I have had the idea that Outlook (which I've never used or been exposed to) will sync with palm, but something I read gave me the impression that I would need to buy some third party software to make that happen, plus the $110 they want for Outlook. I would like to think there are other choices for someone who just wants to sync their smart phone with their email client's address book. It seems that such syncing ability would be esential to palm's sales and that a listing of all such syncing possibilities would be extremely beneficial to sales, particularly for new sales to people aren't already insiders on this sort of topic. The lack of ability to sync with Thunderbird may just cause me to stick with my old m130 awhile longer and give up on the idea of a nice new smart phone.
Post relates to: Palm m130
This question was solved.
View Solution.Wow, thanks a bunch! You just saved me from a long, involved, and discouraging search for an alternative. I'm using WindowsXP, palm m130, palm desktop 4.1, Thunderbird 2.0.0.21 and Thunderbird's palm sync conduit palmsync-2.0.0.x-wsm . I'm wanting to purchase a Treo 700 on ebay, but went to the palm site, clicked on the support link, then the Treo 700, then the downloads tab and it directed me to desktop 6.2, which made me believe I would have to use that to sync a treo 700.
I do wish that both palm and Thunderbird would talk more about the palm Thunderbird palm sync. Unless you're a real geek or very determined (I'm the later), you're not likely to find out that such capability exists. I can't believe I'm the only one out there who needs to have my email client address book contacts with me all the time, so there has to be others who are looking for this.
Next stop, ebay - I have a smart phone to buy. -
ITS 6.20 connect to another client doesn't work
We have an ITS 6.20 .
Glabal service belong the caracteristics of connection to SAP server (login, pasword, client, systemnamme, systemnumber).
I want to connect to another client but all the others parameter stay the same as in global service definition.
The idea I have is to put the client in the URL as parameter but it doesn't work
example of the URL:
http://[server]/scripts/wgate/ZAXB18W/!?client=300&record=1&templatelanguage=EN&username=zzz&cdealer=80023456&sessionid=493460714&~check=7ED3B4B75260C2ABA6EA4EF77706770F
The connection doesn't hold in count the client parameter. It is connected with the client of global parameter.
Is there anybody who can help me ?.Hello Eric,
You'll need to remove the ~client value in the global.srvc file (and service file of the service being called). Than the ~client parameter in the URL should work.
Edgar -
Customer Revenue Report issue.
Dear All,
I have created one custom Business Object (Customer Data) for count the customer total revenue and his categories also.
My logic is working properly . Now i want to create one report too.
In report i want my Four field -
1.Customer ID
2.Customer Name.
3.Customer Total Revenue.
4.Customer Categories.
For this i have created one Data Source from SDK but it's reflecting only the record which i have save in my BO.
But i want all customer id with his revenue and his Categories. and it should be auto update if any changes will occur.
How can i achieve this ?
Please help me .
Thanks,
Manoj Kannaujiya.Hi Horst,
I have count the total revenue of customer and stored in "Customer total revenue"
Here you can see in the right , i have store one Custom master data of Range and categories.
now--
it will compare customer total revenue(which is stored in Customer Total revenue field ) with these above range.
if customer total revenue will comes between the range then it will pick it's relevant Categories and will
show into the " CustomerFinalCategories ".
Thanks,
Manoj Kannaujiya. -
Hi,
I have a question about performing a distinct count of number of clients in my cube OLAP.
My clients-dimension table is populated from 4 different databases, this means that I can find the same clients with different Clients_ID (Natural key), because each client has a different ID in every database.
I want to calculate a distinct count on client’s phone number because it’s the same record in all Databases, I always get a big number which is not the right result. I checked deeply the issue and I found that the query I set seems
to not perform the distinct count right on the phone number.
The small test I did with only filters (see screenshot below) let me believe that my query is performing the distinct count on each client ID instead of the phone number.
Here it is the query I used to perform my distinct count:
WITH SET MySet AS
Filter(
{[Dim Date].[Year].&[2014]} *
{[DIM FA Clients].[FaCuNumberX].[FaCuNumberX]},[Measures].[QQT - Fact Ventes]>1 or [Measures].[QQT - Fact Ventes]=1)
MEMBER MEASURES.SETDISTINCTCOUNT AS
DISTINCTCOUNT(MySet)
SELECT {MEASURES.SETDISTINCTCOUNT} ON 0
FROM [CubeAll]
I don’t know why the filter on this mdx query doesn’t work properly like an SQL group by.
Thanks for help!Hi Merouane,
According to your description, you want to calculated to the numbers of client by count distinct Phone Number, right?
In your scenario, you can add a distinct count measure in your project. Distinctcounts are one of the most demanding requests that can be placed on a MOLAP database, caused by the large number of dimensional attributes that typically exist in a cube. Here
is a blog which describe several solutions for distinctcount in a SSAS project, please refer to the link below to see the detais.
http://www.mssqltips.com/sqlservertip/3043/different-options-for-creating-a-distinct-count-measure-in-ssas/
Regards,
Charlie Liao
TechNet Community Support -
SCCM 2012 R2 - "Site - Client information" reports contain no data
Hi,
I'm running CM 2012 R2 and have a lot of clients installed. In management console, the clients are active, but Site - Client Information reports contain no data. The other reports, for example, Hardware - Processor etc., show data.
What is wrong?Do you have a Fallback status point enabled and defined? if not then most of these report will not work.
However Count of Client for each site should work.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Update huge table(30 Millions) using huge table (30 Millions) on daily basis
Hi,
We are building a datamart for one of the financial systems. For the same we have 2 tables:
1. Temp table which will hold the summary of balances at customer level.
2. The actual fact table where the summaries will be updates.
Fact table will have complete data of all the customers where as temp table will have nearly same records.
We have tried using merge into clause (with Parallel option). But its taking too much time (already been more than 24 hours and no output).
What should be the optimal way to handle the same?
Fact table : Has index on cust id
Temp table : No index ( as all rows will be scanned)
Query is as follows:
/*+ <<PARALLEL OPTION CODE IS HERE + */
Merge into Fact from Temp using(Fact.custid=temp.custid)
on col1=newcol1,col2=newcol2 ...
Kindly help how to proceed.
Regards,
BhavinHey Jonathan,
Below is the SQL and Explain plan...
MERGE
/*+PARALLEL(CSV) PARALLEL(TMP)*/
INTO TARGET CSV USING SOURCE TMP ON (CSV.T_PK= TMP.T_PK)
WHEN MATCHED THEN
UPDATE
SET CSV.T1 = TMP.T1;
This has 12 other columns in the update and no inserts. Nothing gets deleted after the load here.
There is a PK on the CSV.T_PK field but no PK or index on TMP table.
OPERATION
OPTIONS
OBJECT_NODE
OBJECT_NAME
OBJECT_INSTANCE
OBJECT_TYPE
OPTIMIZER
POSITION
COST
CARDINALITY
BYTES
MERGE STATEMENT
ALL_ROWS
143825
143825
17576549
5940873562
MERGE
TARGET
1
PX COORDINATOR
1
PX SEND
QC (RANDOM)
:Q1002
:TQ10002
1
143825
17576549
7206385090
VIEW
:Q1002
5
1
HASH JOIN
BUFFERED
:Q1002
1
143825
17576549
7206385090
PX RECEIVE
:Q1002
1
1212
17576549
421837176
PX SEND
HASH
:Q1000
:TQ10000
1
1212
17576549
421837176
PX BLOCK
ITERATOR
:Q1000
1
1212
17576549
421837176
TABLE ACCESS
FULL
:Q1000
TARGET
4
TABLE
ANALYZED
1
1212
17576549
421837176
PX RECEIVE
:Q1002
2
99314
35202438
13588141068
PX SEND
HASH
:Q1001
:TQ10001
1
99314
35202438
13588141068
PX BLOCK
ITERATOR
:Q1001
1
99314
35202438
13588141068
TABLE ACCESS
FULL
:Q1001
TARGET
2
TABLE
ANALYZED
1
99314
35202438
13588141068
The counts are as follows:
CSV(TARGET): 35 mIllion
TMP(SOURCE): 17.5 million.
We ran this merge and it took 22 hours to complete.
The index is not getting used even now for the CSV access. Please suggest.
Regards,
Anupam. -
Hi All.
First of all, I'm sorry for my English. But, I'll do my best to explain.
I'm developing Text Chat App with FMS 4, Flex 4.6.
I want to count how many users in.
I've searched enough. And I made some codes.
Server Side Code(main.asc)
application.onAppStart = function()
trace("hihihi");
application.onConnect = function(client)
application.acceptConnection(client);
userCount = application.clients.length;
// Define new client function for a nc.call().
client.callFromClient = function() {
return userCount;
application.onDisconnect = function(client){
trace("Connection is disconnected!!!");
userCount = application.clients.length;
trace("length is " + userCount);
for(var i=0; i<application.clients.length; i++){
application.clients[i].call("setUserCount", null, userCount);
SimpleChatTest.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="497" height="518" minWidth="955" minHeight="600" creationComplete="initApp()">
<fx:Script>
<![CDATA[
private var nc:NetConnection;
private var so:SharedObject;
private var soUserCount:SharedObject;
private var myResponder:Responder = new Responder(onReply);
private function initApp():void{
nc = new NetConnection();
nc.client = this;
nc.connect("rtmp://127.0.0.1/SimpleChatTest/");
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.call("callFromClient", myResponder, "Server");
private function netStatusHandler(event:NetStatusEvent):void{
switch(event.info.code){
case "NetConnection.Connect.Success":
trace("Success Connection!!");
// share chat contents
so = SharedObject.getRemote("simpleChat", nc.uri, false);
so.addEventListener(SyncEvent.SYNC, syncHandler);
so.connect(nc);
// share user count
soUserCount = SharedObject.getRemote("userCount", nc.uri, false);
soUserCount.addEventListener(SyncEvent.SYNC, syncHandler_UserCount);
soUserCount.connect(nc);
break;
private function syncHandler(event:SyncEvent):void{
if(so.data["simpleChat"] != undefined){
view.text += so.data["simpleChat"] + "\n";
private function syncHandler_UserCount(event:SyncEvent):void{
trace("soUserCount.data[userCount] in syncHandlerMethod : ", soUserCount.data["userCount"]);
viewCount.text = soUserCount.data["userCount"];
/* ServerSide에서 Client length가져오기*/
public function setUserCount(userCount:Number):void{
soUserCount.setProperty("userCount", userCount.toString());
// Responder function for nc.call()
private function onReply(result:Object):void
trace("result : " + result);
soUserCount.setProperty("userCount", result.toString());
trace("soUserCount.data[userCount] : ", soUserCount.data["userCount"]);
private function sendMessage():void{
so.setProperty("simpleChat", textInput.text);
textInput.text = "";
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TextArea x="10" y="10" width="329" height="468" id="view"/>
<s:TextInput x="10" y="486" width="246" enter="sendMessage()" id="textInput"/>
<s:Button x="264" y="487" label="Send" click="sendMessage()"/>
<s:Label x="347" y="10" text="Total Users : "/>
<s:Label x="455" y="10" id="viewCount"/>
</s:Application>
I traced result of SharedObject.
Result
Success Connection!!
result : 1
soUserCount.data[userCount] 1
soUserCount.data[userCount] in syncHandlerMethod undefined --> why?
I can't understand why sharedobject's data is dissipated??
Thanks in advanced.
Kevin.
ps. I also wanna use SharedObject in Server Side. Unfortunately I tried tried tried tried many times... But I don't know how to do it. I'm newbie to flex&FMS. Is there some example about that?Add a method on main.asc as below:
Client.prototype.userCount = function()
// get the number of connected users
var count = application.clients.length;
this.call("receiveUsercount", null, count);
And add a method in client side code ( in initApp() ) as below:
nc.receiveUsercount = function (count)
//do code here
trace("Total Users:" + count );
Now call the FMS method (as below) from client side code when you want current user count details from FMS:
nc.call("userCount", null);
Maybe you are looking for
-
HP photosmart D110 Mac OSX 10.8.5
I have had to reload my printers into my Macbook pro. I have loaded the HP photosmart D110 in the print/scan utility and can see the printer. I also can print a test page. When I go to print a document, I get the following message "printing-printe
-
Queries for Vendor Master Data
Hello, Does anyone know if there is any standard queries for vendor master data? Thanks ans best regards Maria Stone
-
No internal CA - do we need to purchase all Lync certs?
Hi, We're rolling out a pretty small environment...one Standard Edition server, one Persistent Chat server, and one Edge. I understand the cert on the external interface of the Edge will need to be from a publicly trusted CA, and all the others I've
-
How can I get my web site that is done on iweb seen on search engines like google or msn?
-
Java 2D and hardware accelleration
Is there a way to use Java 2D and take advantage of a graphics card accelleration (ie. Creator 3D) or do I have to convert my application to Java 3D? If so, how compatible are the APIs? Thanks