Which give higher performance TopLink with CMP or session facade
In our project we plan to use TopLink which one give higher performance
TopLink with CMP
Or TopLink with session façade
thanks in advance
Which give higher performance TopLink with CMP or session Bean
Similar Messages
-
In the below queries which gives better performance
Hi All,
In the below two queries which gives better performance.
Requirement is I need to find if all the 3 score columns are null then I need to assign -ve value -9999 else some +ve value 2
1)
select case when count(CUST_score1)+count(CUST_score2)+count(CUST_score3)=0 then -111111'
else 11 end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
2)
select case whenCUST_score1 is null and CUST_score2 is null and CUST_score3 is null then '-9999'
else '11' end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
Please help, because we have more data in table customer so I need to confirm which is better.
Regards,
Chandauser546757 wrote:
Hi All,
In the below two queries which gives better performance.
Requirement is I need to find if all the 3 score columns are null then I need to assign -ve value -9999 else some +ve value 2
1)
select case when count(CUST_score1)+count(CUST_score2)+count(CUST_score3)=0 then -111111'
else 11 end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
2)
select case whenCUST_score1 is null and CUST_score2 is null and CUST_score3 is null then '-9999'
else '11' end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
Please help, because we have more data in table customer so I need to confirm which is better.
Regards,
ChandaThe two statements aren't equivalent. If you know that your where condition is restricting to a single row then there is no point in doing a count as that will introduce an additional aggregate function that isn't required for a single row. If you are dealing with multiple rows from the where condition then the second query will return multiple rows whereas the first query returns 1 row, so they don't do the same thing anyway. -
Which gives better performance in webi using display attr or nav attr -
Hello all,
We are using the Bex query as the datasource for our universes and the end user is using the Web Intelligence as the reporting tool (rich client and infoview) we have employee as one of the infoobject in the cube.
Now employee has a lot of attributes which the user wants to use for reporting (delivered employee infoobject has quite a few attr), we are making some of them as Nav attr like Org unit since they are time dependent and the end user will need to put in the key date to bring the employees from right org unit.
We have enhanced the employee attr to have the all address information of the employee (Z fileds) and we have made those nav attr in RSd1.
So my question is should we make the address Z fields as nav attr in cube as well and use those objects in webi or can we use the objects in webi which fall under employee like details (green icons) rather than separate object.
Please let me know what will keep better performance and what is the best practice.
Thanks you in advance and appreciate everyone's help
Edited by: Cathy on Jun 16, 2011 7:35 AMHi,
BEx Query Design Recommendations:
"Reduce Usage of Navigational Attributes as much as possible Also, if simply displaying a Characteristicu2019s Attribute, DO NOT use the Navigational Attribute u2013 rather utilize the Characteristic Attribute for display in the report This avoids unneeded JOINS, and also reduces total number of rows transferred to WebI"
Source : SAP Document
Thanks,
Amit -
Which gives better performance
I have to two arraylists. I have to sort one based on the other. The way i did was to iterate one over the other. Or may be I have to load one arrylist into a hashmap and then do hashmap.get to get to the individual items?
MRI find this an interesting problem so I had a go at it just to understand what one has to do -
import java.util.*;
public class Fred
public static void main(String[] args)
// Create the reference
final ArrayList<Integer> reference = new ArrayList<Integer>();
for (int index = 0; index < 100; index++)
reference.add(index);
Collections.shuffle(reference);
// Now some data to work with
final Random random = new Random();
final ArrayList<Integer> data = new ArrayList<Integer>();
for (int index = 0; index < 1000; index++)
data.add(random.nextInt(100));
// Build the map needed in the sort comparator
final HashMap<Integer,Integer> sortHelper = new HashMap<Integer,Integer>();
for (int index = 0; index < reference.size(); index++)
sortHelper.put(reference.get(index), index);
// The 'indirect' comparator
final Comparator<Integer> comparator = new Comparator<Integer>()
public int compare(Integer left, Integer right)
Integer leftIndex = sortHelper.get(left);
Integer rightIndex = sortHelper.get(right);
if (leftIndex == null)
return 1;
else
return leftIndex.compareTo(rightIndex);
// Now sort
Collections.sort(data, comparator);
// Test the result - how?
}So how does one test the result? -
I want know the RFC or BAPI for Vendor details which gives customise lfa1
Hello Experts,
I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields..
1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1.
2) How Can I code In the PDM server??I mean How can I call In the PDM script??
Please send me how to write a script and code of the script??
Thanks In Advance
Preethihi,
use BAPI_VENDOR_GETDETAIL
A. -
Session Facade design and TopLink objects
Hi, we are just about to start using Toplink as our ORM tool. Ideally we want to wrap all business logic behind stateless session bean facades. So instead of BMP entity beans we are thinking of encapsulating the relevant Toplink objects in each facade and querying, updating that object when the session facade bean is instantiated.
We are using Weblogic 70. Example code:
e.g. MySessionBean implements sessionbean...
MyTopLinkObject myObject = null;
public void populateObject(String myID) throws java.rmi.RemoteException {
try {
MyTopLinkObject myObject = new MyTopLinkObject(myID);
catch (Exception e) {
public void setMyTopLinkObjectsName(String name) {
//persist this change via the toplink object...
myObject.setName(name);
Then in MyTopLinkObject:
public class MyTopLinkObject {
private String myID;
private String myName;
public MyTopLinkObject(String myID) {
build(myID);
public void build(String myID) {
//read TOPLINK cache and populate this MyTopLinkObject name etc
public void setName(String myName) {
//persist this change...
this.myName = myName;
// more gets sets
I will then want to update MyTopLinkObject data in for example in calling. MySessionBean.setMyTopLinkObjectsName("my name") from the remote interface on the client.
So what I want to know is how do I can I do this efficiently. I'm too too versant with TopLink caches etc. For example to read the cache do I have to pass thru a TopLink client/server Session to each Session Facade bean so the cache is available for that read, update etc?
Any other tips is using this design would be appreciated!
Thanks in advance,
JDon, thanks for ur advice yet again.
I think now I am getting a better grasp of how TopLink should be used. However there is very little doco out there in terms of using TOPLInk in as EJB session facade scenario.
After your advice my thoughts are to provide something like the TOPLInkFactory object as you say which will encapsulate the ServerSession TOPLink API and provide more fine grain access to the TOPLInk API. e.g. instead of having to create a ClientSession in each client call b4 getting a UnitOfWOrk, this factory class would provide a method to do this directly:
public final class TOPLinkFactory {
private static ServerSession serverSession = null;
private static final String TOPLINK_CONFIG_FILE = "C:\\test.xml";
private static final String TOPLINK_SESSION = "toplink";
public TOPLinkFactory() throws Exception {
super();
private static ServerSession createServerSession(ClassLoader cl) throws Exception {
try {
Project builderProject = XMLProjectReader.read(TOPLINK_CONFIG_FILE, cl);
serverSession = (ServerSession)builderProject.createServerSession();
serverSession.login();
return serverSession;
catch (Exception e) {
return null;
public static UnitOfWork getUnitOfWork(ClassLoader cl) {
try {
return createClientSession(cl).acquireUnitOfWork();
public static ClientSession createClientSession(ClassLoader cl) throws Exception {
try {
if (serverSession == null) {
serverSession = createServerSession(cl);
ServerSession s = (ServerSession)SessionManager.getManager().getSession(TOPLINK_SESSION, cl);
return serverSession.acquireClientSession();
catch (Exception e) {
return null;
Then in my Session EJBs I could write a method like this where Thing is a TOPLInk object mapped to the thing table:
public boolean setThingStatus(String thingID) {
ExpressionBuilder builder = new ExpressionBuilder();
Expression expression = builder.get("THING_ID").equal( Integer.parseInt(thingID));
ClientSession s = TOPLinkFactory.createClientSession(this.getClass().getClassLoader());
Thing thing = (Thing) s.readObject(Thing.class, expression);
UnitOfWork uow = TOPLinkFactory.getUnitOfWork(this.getClass().getClassLoader());
Thing thingClone = (Thing)uow.registerObject(thing);
thingClone.setStatus("WITH JASON");
TOPLinkFactory.commitAndReleaseUnitOfWork(uow);
return true;
Now if the above looks OK and there are no Thread/Session issues that you could make me aware of (or perhaps you would encourage using a full Singleton pattern instead).
I have another question in relation to ClassLoaders. In this architecture I have been passing around the ClassLoader (as above) to the TOPLInkFactory methods to create the unit of works etc... Is this necessary? Or could I avoid it?
Also I think some people in my team are thinking its a good idea for all TOPLink business objects to extend an abstract base class that contains this behaviour and provides these TOPLinkFactory methods. I no expert on TOPLInk but I would have thought this code should not be coupled with the TOPLink business objects for reasons such as:
1) Why should a TOPLink Person object (attributes name, age etc) e.g. extend a class with TOPLink API methods and attributes - I just don't see the logic there as I thought TOPLink was to be non-intrusive. For example a Person object should not encapsulate a ServerSession object and nor does it need to. To this end they are then coupled and if for example we wanted to move these Person objects to work with another persistence framework then they would have to be rewritten to remove all TOPLInk attribute/method references
2) I would have thought accessing the TOPLInk API is only necessary when the client code needs to invoke calls to the database for reads and updates. i.e. that's where you start getting your sessions, unit of works etc. Like in the setThingStatus Session EJB method (i.e. the client code) above and NOT in your business methods of for example the TOPLink Person object?
Please tell me if I am mistaken!
If you could clear some of this up it would be great.
Regards,
Jason -
HelloThank's for your helpsI hope this document is helpfulBest Regards,
Date: Sun, 22 Jun 2014 17:10:17 -0700
From: [email protected]
To: [email protected]
Subject: when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
created by Anoop9178 in Adobe Reader - View the full discussion
Hi,
Would it be possible for you to share the document?
Regards,
Anoop
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
Issues with "Higher performance" setting on Macbook Pro with external monitor
Hi all,
I rarely used the "Higher performance" setting in the Energy Saver pane of System Preferences.
I use my MB connected with an external monitor, with its own screen closed. I tried to switch that setting on and the external monitor seems to repeatedly turn off and on. This strange behaviour vanishes if I open the MB's screen, using it in a double monitor configuration.
Did anyone hear about some similar problem?
p.s.: I don't know if this is the exact location for this thread, any suggestions is welcomeIt was set to 1080p, 1920x1080 did not show up as an option (even when holding the option key). 1080p should be equivlant. As as experiment I grabbed another monitor that was not being used. It is a 22 inch LG with a maximum display of 1920x1080, and its currently set to 1920x1080. The issue is a little different, was not detected as a TV this time, but the screen still looks blurry. There may be some improvement but not much.
-
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
if you can help me thank's
[email address removed by host]thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)
Hi All,
I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
Please let me know if there is any oracle functionality to do this.
If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
For eg, /$APPL_TOP/ar/1.0/sql or something.
Regards,
Swapnil K. -
File Adapter or File Transport which one will give more performance
Hi all,
File Adapter or File Transport which one will give more performance ? in OSB?
Which one to select any one did performance analysis?
Thanks
PhaniWhy don't you just go read some benchmarks?
http://www.barefeats.com/mbpp18.html -
When I try to open a menu from a restaruant on a web site, it wants to be open with notepad which gives me garbage. It does not allow me any options to open with adobe or other option.
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies" -
Select data from database tables with high performance
hi all,
how to select data from different database tables with high performance.
im using for all entries instead of inner joins, even though burden on data base tables is going very high ( 90 % in se30)
hw to increase the performance.
kindly, reply.
thnksAlso Check you are not using open sql much like distict order by group by , use abap techniques on internal table to acive the same.
also Dont use select endselect.
if possible use up to n rows claus....
taht will limit the data base hits.
also dont run select in siode any loops.
i guess these are some of the trics oyu can use to avoid frequent DATA BASE HITS AND ABVOID THE DATA BASE LAOD. -
Hi
We are looking for a software which converts SWF to MP4, we found many software which does the job but issue is file size is not optimize.
We found Adobe captivate 6 which gives optimum quality with good output but thing is we do not have batch process in captivate 6. so we request you to create a plugin or give a best option which have batch render quality and optimize in file size,Captivate is e-learning development software not a dedicated video convertor, you are better off trying something like Adobe Media Encoder or Super.
-
Which versions of Window can perform best with CiscoWorks?
Hi,
Please advice that currently we have 3200 logical devices configured on CiscoWorks and CiscoWorks is running very very slow. CiscoWorks installed on server with Windows Server 2003 32-bit and this version of windows it can only support RAM up to 4GB, which is already installed. In order to increase the RAM we have to upgrade the windows version as well.
Please advise that which versions of Window can perform best with CiscoWorks. E.g. Windows Server 2003 with Service Pack 1 (SP1), Standard Edition 64-bit: or Windows server 2008 etc. Please advise us the full windows release version as we will upgrade windows as per your suggestion.
We are currently using the LMS 3.2, RME 4.3.0, CM 5.2.1Please refer to the Installation Guide for Windows server requirements. Here is the link:
http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/3.2/install/guide1/prereq.html#wp1099303
Given that you want to stay with Windows Server, Server 2008 Standard Edition with service Pack 2 would be your best choice.
NOTE that your should not (and cannot) use Server 2008 R2. That version in only supported with LMS 4.0.1. LMS 3.2 will not work with Server 2008 R2.
With a 64-bit OS, you can increase your RAM - which is usually constraining system performance on systems with 32-bit OS. I recommend just putting in 16 MB. Why skimp on $100 RAM with $20,000 software?
Your other alternative is to divide the server roles across several machines. That is a pretty complex task so I'd do the OS and RAM upgrade first and see how that helps you out.
Re "Linux" LMS 3.2 (and 4.0/4.0.1) is only supported on Windows and Solaris operating systems. Plus if you're not a Uniux admin, the learning curve can be steep for your first dip in the water.
Maybe you are looking for
-
Calendar - How can I expand the recurrences of a recurring item in ItemAdding event receiver?
When a user add a new recurrence event to a calendar I want to check if any of the recurrences overlap with events already in the calendar. I saw the property Recurrences Data and its XML but I didn't find a way to translate that value to dates I can
-
Old iphoto library from an old computer's hard drive doesn't open anymore
My old computer broke some time ago, but I got the hard drive saved with its iPhoto library. I used to be able to open the old iPhoto from the old computer's hard drive with my new computer connecting them, but now it says that the old iPhoto cannot
-
Exporting from Lightroom to PS CC
I cannot export files from Lightroom to Photoshop CC even although I have set up the correct Preferences. When I try to export PS CC does not open but it does open PSE 11 but with no file! Your help would be appreciated. Many thanks. GM
-
How can I using functions implicit in dll file in java code ?
How can I using functions implicit in dll file in java code ? I'm developing a program that interfacing with fingerprint hardware. I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint. These SDK
-
PS CS3 Extended fails to install. XP Pro
PS CS3 Extended fails to install. Windows XP Pro. Computer info: Pentium 4 CPU 2.8GHz 1.50GB Ram 29GB Free Space I seem to have the same problem as dixieppc. http://www.adobeforums.com/webx?224@@[email protected] I have tried to install PS CS3 from