[svn:osmf:] 15983: Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys .
Revision: 15983
Revision: 15983
Author: [email protected]
Date: 2010-05-10 04:47:46 -0700 (Mon, 10 May 2010)
Log Message:
Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys.
Modified Paths:
osmf/trunk/apps/samples/plugins/VideoQoSPlugin/src/org/osmf/qos/VideoQoSPluginMetadataSyn thesizer.as
Rob:
"but the sad thing is, that managers will most likely respond with a "This used to be fast in MSSQL, but now it isn't any more in Oracle. Oracle is so slow ...""
On the bright side, it sounds like most of the database calls are implemented as stored procedures, so there is an opportunity to do it right (in Oracle terms) in the stored procedures.
I did a similar conversion a while back, converting bad SQLServer procedures to good Oracle procedures. Everyone said "Oracle is much faster that SQLServer"
John
Similar Messages
-
MODEL clause to process a comma separated string
Hi,
I'm trying to parse a comma separated string using SQL so that it will return the parsed values as rows;
eg. 'ABC,DEF GHI,JKL' would return 3 rows;
'ABC'
'DEF GHI'
'JKL'
I'm thinking that I could possibily use the MODEL clause combined with REGULAR expressions to solve this as I've already got a bit of SQL which does the opposite ie. turning the rows into 1 comma separated string;
select id, substr( concat_string, 2 ) as string
from (select 1 id, 'ABC' string from dual union all select 1, 'DEF GHI' from dual union all select 1, 'JKL' from dual)
model
return updated rows
partition by ( id )
dimension by ( row_number() over (partition by id order by string) as position )
measures ( cast(string as varchar2(4000) ) as concat_string )
rules
upsert
iterate( 1000 )
until ( presentv(concat_string[iteration_number+2],1,0) = 0 )
( concat_string[0] = concat_string[0] || ',' || concat_string[iteration_number+1] )
order by id;
Can anyone give me some pointers how to parse the comma separated string using regexp and create as many rows as needed using the MODEL clause?Yes, you could do it without using ITERATE, but FOR ... INCREMENT is pretty much same loop. Couple of improvements:
a) there is no need for CHAINE measure
b) there is no need for CASE in RULES clause
c) NVL can be applies on measures level
with t as (select 1 id, 'ABC,DEF GHI,JKL,DEF GHI,JKL,DEF GHI,JKL,DEF,GHI,JKL' string from dual
union all
select 2,'MNO' string from dual
union all
select 3,null string from dual
SELECT id,
string
FROM T
MODEL
RETURN UPDATED ROWS
partition by (id)
DIMENSION BY (0 POSITION)
MEASURES(
string,
NVL(LENGTH(REGEXP_REPLACE(string,'[^,]+','')),0)+1 NB_MOT
RULES
string[FOR POSITION FROM 1 TO NB_MOT[0] INCREMENT 1] = REGEXP_SUBSTR(string[0],'[^,]+',1,CV(POSITION))
SQL> with t as (select 1 id, 'ABC,DEF GHI,JKL,DEF GHI,JKL,DEF GHI,JKL,DEF,GHI,JKL' string from dual
2 union all
3 select 2,'MNO' string from dual
4 union all
5 select 3,null string from dual
6 )
7 SELECT id,
8 string
9 FROM T
10 MODEL
11 RETURN UPDATED ROWS
12 partition by (id)
13 DIMENSION BY (0 POSITION)
14 MEASURES(
15 string,
16 NVL(LENGTH(REGEXP_REPLACE(string,'[^,]+','')),0)+1 NB_MOT
17 )
18 RULES
19 (
20 string[FOR POSITION FROM 1 TO NB_MOT[0] INCREMENT 1] = REGEXP_SUBSTR(string[0],'[^,]+',1,CV(POSITION))
21 )
22 /
ID STRING
1 ABC
1 DEF GHI
1 JKL
1 DEF GHI
1 JKL
1 DEF GHI
1 JKL
1 DEF
1 GHI
1 JKL
2 MNO
ID STRING
3
12 rows selected.
SQL> SY. -
I updated Firefox and now it will not open at all. The hourglass shows that it's working but then nothing. I went to add/remove and removed mozilla and reinstalled it and still the same thing. It worked fine before I updated. Now I can't even remove the program at all. Why is this happening?
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
Create a new profile as a test to check if your current profile is causing the problems.
See "Basic Troubleshooting: Make a new profile":
*https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
See:
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox -
Passing comma separated string to stored procedure
Hi,
There is thread with same query I created earlier and that was answered. That solution worked if I pass comma separated string containing IDs. But due to changes in the logic, I have to pass usernames instead of userIDs. I tried to modify the solution provided to use with this.
Following the link to previous post :
Re: Passing comma separated string to stored procedure
------Package-------
TYPE refcurQID IS REF CURSOR;
TYPE refcurPubs IS REF CURSOR;
procedure GetAllPersonalQueue (p_user_name in nvarchar2, TestQID OUT Test.refcurQID
, TestPubs OUT Test.refcurPubs);
------Package-------
------Package Body-------
PROCEDURE GetAllPersonalQueue (p_user_name in nvarchar2, TestQID OUT Test.refcurQID, TestPubs OUT Test.refcurPubs) as
BEGIN
Open TestQID for
select id from cfq where name in (p_user_name);
Open TestPubs for
SELECT qid FROM queues WHERE qid in(
select id from cfq where name in (p_user_name));
END GetAllPersonalQueue;
------Package Body-------
Thanks in advance
AdityaHi,
I modified the query as per the solution provided by isotope, after which the logic changed and I am passing username instead of userID in comma separated string.
Following is the changes SP, which does not throw any error, but no data is returned.
PROCEDURE GetAllPersonalQueue (p_user_name in nvarchar2, TestQID OUT Test.refcurQID, TestPubs OUT Test.refcurPubs
) is
--local variable
strFilter varchar2(100);
BEGIN
Open TestQID for
select id, name from cfq where name in
select regexp_substr(p_user_name||',','[a-z]+[0-9]+',1,level)
from dual
connect by level <= (select max(length(p_user_name)-length(replace(p_user_name,',')))+1
from dual)
Open TestPubs for
SELECT qid FROM queues WHERE qid in(
select id from cfq where name in
select regexp_substr(p_user_name||',','[a-z]+[0-9]+',1,level)
from dual
connect by level <= (select max(length(p_user_name)-length(replace(p_user_name,',')))+1
from dual)
END GetAllPersonalQueue;
Edited by: adityapawar on Feb 27, 2009 8:38 AM -
Look Up For Comma Separated Strings
Hi,
How to look up for comma separated string from livecycle forms manager ??
Plz gimme an idea on this.
Raghava Kumar V.S.S.Hi
My point is that the more detailed you ask your question, the more likely you are to get an answer.
Those of us who monitor these newsgroups also appreciate you doing as much of your own research as possible, before asking us for help - we're more likely to spend our own (personal and valuable) time helping you, if we know that you've spent your own time doing research, and you've still not been able to solve the problem.
I look forward to your next question :-)
Howard -
When I import a commerical CD Itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the second album that it created. Why is itunes doing this and what can I do to combine them into one album?
I found this to be somewhat helpful: Grouping Tracks into Albums
What I did was to put in the same name for Album Artist in every track. That seemed to do the trick (previously all those fields were empty). It seems like a lot of work for a simple thing.
iTunes knows (or should know) that these tracks were imported from one CD. So why is it relying on incomplete data from the gracenote database? -
How can I create a magazine web app for all devices?
How can I create a magazine web app for all devices?
magazine web app is not supported in DPS as of now. You can share the contents to preview it on web content viewer.
-
When I was updating my ipod touch 4g 8g 4.3.3 the USB came out and now it just shows connect to itunes and when i try to update it comes with error 6. I do all of the help things and nothing happoned
First see if placing the iPod in Recovery Mode will allow a restore.
Next try DFU mode and restore.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem. -
I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MESSAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER! ALSO IF I KILL MYSELF I WILL HOLD YOU PERSONALTY RESPONSIBLE.edit
There is a world of information in these forums if you use the search function near the top right of this page. Just type in NAS for example and you get many threads on the subject (marked with a green checkmark if it solved the question) another example would be Airport Exterme and sound system. Once you formulate your ideas better then specific questions can be addressed one at a time. You may find that a less expensive choice for a server might be a mac mini. Good luck with your project, ask more specific questions and update you systems profile.
-
I create a mobile game. How to get the signing key?
I create a mobile game. How to get the signing key? Is the certificate is payable? Sorry if the topic is in the wrong section.
You need to be an iOS/Mac OS X developer.
https://developer.apple.com/devcenter/ -
What is Tcode to create a single delivery documents for all line itemsinPO?
Hi all,
Sorry if it is a simple question, But I am from SD module. What is Tcode to create a single delivery documents for all line items in PO. I have 3 line items with Different materials having diffent quantities and there are different delivery dates and different delivery schedule dates. I need to create single delivery. Could you please tell me how to do it? What is the Tcode?
Thanks
AnilHi Anil
For your 1st question , if the delivery date is same but he material and quantity are different also then both can be delivered . So you can combine those two materials into 1 delivery . what you said is true
For your 2nd question , you said you have two line items in PO , but if you want combine them into 1 delivery document , then first of all as they are two different materials you cant combine , but if you have a 3 PO's for the one material only then you can combine into one delivery by using VL10A
Regards
Srinath -
Convert comma separated string in rows
Dear Gurus,
I want to convert comma separated string in rows so as to insert in collection.
e.g. string 1234,2323,23232,2343,34234
Above string should be converted in rows so as to insert in table or collection
Thanks in advance
SanjeevOr slight variation...
SQL> ed
Wrote file afiedt.buf
1 with t as (select '1234,2323,23232,2343,34234' as txt from dual)
2 --
3 select REGEXP_SUBSTR (txt, '[^,]+', 1, level)
4 from t
5* connect by REGEXP_SUBSTR (txt, '[^,]+', 1, level) is not null
6 /
REGEXP_SUBSTR(TXT,'[^,]+',
1234
2323
23232
2343
34234... so it doesn't have to work out how many levels it needs to do, it just keeps going until it get's a no-value (of course that assumes that there is always a value between each comma) -
Hi to all
I have team site in site collection under this i have Shared Document library. Now i want to create the workflow for the shared Document library. How i will create workflow using sharepoint designer for first review the documnet than go for approve
the document.Hi ,
According to your description, my understanding is that you want to create a workflow which contains review and approval process.
For implemening your requirement, you can create a workflow containing two steps. The first step is used to collect user information and set workflow variables, and the second step is used to verify whether the reviewer approve. If the reviewers complete
approving, a pproval workflow is started. The whole workflow is like :
More information, please refer to the links below:
http://www.documentmanagementworkflowinfo.com/sharepoint-video-tutorials/create-document-review-workflow-sharepoint-designer-2007.htm
http://office.microsoft.com/en-us/sharepoint-designer-help/watch-this-design-a-document-review-workflow-solution-HA010256417.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Revision: 15262
Revision: 15262
Author: [email protected]
Date: 2010-04-07 13:54:32 -0700 (Wed, 07 Apr 2010)
Log Message:
Updated unit test for MediaPlayers new default width/height. FM-300.
Ticket Links:
http://bugs.adobe.com/jira/browse/FM-300
Modified Paths:
osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.asTo Neoreborn:
If I understand right, Shale only provides some mock core JSF objects and extends JUnit so that you can do junit test to your java classes.
What I concern is to test Pages(JSP) rather than java classes. I want to assert component attribute values within all lifecycle including rendered HTML script. Currently, there isn't any good tools to do this kind of JSP Unit test, am I right? -
Revision: 13606
Revision: 13606
Author: [email protected]
Date: 2010-01-18 17:20:00 -0800 (Mon, 18 Jan 2010)
Log Message:
Update build-config files for framework projects.
Modified Paths:
osmf/trunk/framework/OSMF/readme.txt
osmf/trunk/framework/OSMFAIRTest/OSMFAIRTest.mxml
osmf/trunk/framework/OSMFIntegrationTest/OSMFIntegrationTest.mxml
osmf/trunk/framework/OSMFIntegrationTest/OSMFIntegrationTestHeadless.mxml
osmf/trunk/framework/OSMFTest/OSMFTest.mxml
osmf/trunk/framework/OSMFTest/OSMFTestHeadless.mxml
Added Paths:
osmf/trunk/framework/OSMF/osmf-build-config.flex
osmf/trunk/framework/OSMF/osmf-build-config.flexcov
osmf/trunk/framework/OSMF/osmf-build-config.xml
osmf/trunk/framework/OSMFAIRTest/OSMFAIRTest-build-config.xml
osmf/trunk/framework/OSMFIntegrationTest/org/osmf/OSMFIntegrationTests.as
osmf/trunk/framework/OSMFIntegrationTest/osmfintegrationtest-build-config.xml
osmf/trunk/framework/OSMFTest/OSMFTest.flex
osmf/trunk/framework/OSMFTest/OSMFTest.flexcov
osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
osmf/trunk/framework/OSMFTest/osmftest-build-config.flex
osmf/trunk/framework/OSMFTest/osmftest-build-config.flexcov
osmf/trunk/framework/OSMFTest/osmftest-build-config.xml
Removed Paths:
osmf/trunk/framework/OSMF/mediaframework-build-config.flex
osmf/trunk/framework/OSMF/mediaframework-build-config.flexcov
osmf/trunk/framework/OSMF/mediaframework-build-config.xml
osmf/trunk/framework/OSMFAIRTest/MediaFrameworkAirTest-build-config.xml
osmf/trunk/framework/OSMFIntegrationTest/mediaframeworkintegrationtest-build-config.xml
osmf/trunk/framework/OSMFIntegrationTest/org/osmf/MediaFrameworkIntegrationTests.as
osmf/trunk/framework/OSMFTest/MediaFrameworkFlexTest.flex
osmf/trunk/framework/OSMFTest/MediaFrameworkFlexTest.flexcov
osmf/trunk/framework/OSMFTest/mediaframeworkflextest-build-config.flex
osmf/trunk/framework/OSMFTest/mediaframeworkflextest-build-config.flexcov
osmf/trunk/framework/OSMFTest/mediaframeworkflextest-build-config.xml
osmf/trunk/framework/OSMFTest/org/osmf/MediaFrameworkTests.asWhat kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
Please send the .log to [email protected]
Maybe you are looking for
-
Adobe reader 11.0.07 can not access help option
I just downloaded adobe reader 11.0.07 version and I haven't signed up for the paid options, I only use this for reading Is this why I can't access help option on adobe reader 11.0.07? Any insight is appreciated!
-
Stopping a Thread.... again
Hi all, a couple of months ago I've posted a similar topic, on how to stop a thread without using the deprecated stop() method. Still, no result. I have a great deal of calculations that should be done in a separate thread. Due to the fact that the c
-
Any idea what this crash report means? I've removed the UUIDs I've had this crash a few times now. Thanks! *** Panic Report ** Machine-check capabilities: 0x0000000000000c0a family: 6 model: 70 stepping: 1 microcode: 15 signature: 0x40661 Intel(R) Co
-
Hi ABAPers I need an example of smartforms which has two form pages and second page in back of first.Please send me the procedure to create it. Thanks Raghavendra
-
HELP.. can i change the language in my LOGIC PRO ?????
hey i have recently bought logic pro from Apple in France.., but my knowledge of french isnt that good.. is it possible to change the lanuage settings in logic its self from french to english ? hope someone knows the answer.. regards benjamin