Can recortsets be used as includes

i have a few recordsets in one page and the page is becoming sluggish, is it possible to set them on a new page and have them as includes or do they need to be on the same page
thanks

Each include is run as though it were part of the calling page, so putting recordsets in includes would not speed things up.
Are you talking about storing the query result in an include as an array and using PHP to iterate through it using foreach instead of using while on a recordset coming directly from the database? If so, then it would be even slower as MySQL is much faster than PHP at working with the recordset.
If your database queries really are causing sluggishness, creating good indexes in the database can often help a great deal. Also, there is often a variety of ways to write a query, and some methods are more efficient than others.

Similar Messages

  • Is there any way to an index that can be used to include the "OR condition "?

    Hello I have some questions.
    The test was conducted in the following procedure .
    create table test
    c1 varchar2(10),
    c2 varchar2(10),
    primary key(c1)
    create index test_idx1 on test(c2);
    Command> explain select * from test where c1 = 'AAAAAAAAAA' or c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA' OR TEST.C1 = 'AAAAAAAAAA'
    Command>
    Command> explain select * from test where c1 = 'AAAAAAAAAA' and c2 = 'AAAAAAAAAA'
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   TEST.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA'
    Command>
    By including the "OR condition " in this test does not use the index.
    Is there any way to an index that can be used to include the "OR condition "?
    Thanks.
    GooGyum.

    A database cannot in general use indexes in this way for an 'or' involving two different columns. However, for this specific example one can easily rewrite the query using 'UNION' to use the relevant indexes while still giving the same (correct) result:
    Command> explain select * from test t1 where t1.c1 = 'AAAAAAAAAA' union select * from test t2 where t2.c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   T1.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                2
      LEVEL:               2
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST_IDX2
      INDEXED CONDITION:   T2.C2 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                3
      LEVEL:               1
      OPERATION:           OrderBy
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
      STEP:                4
      LEVEL:               2
      OPERATION:           UnionMergeSort
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
    Maybe you can apply a similar trick? If you know there is no possibility of duplicate rows then you can further optimise this (in terms of performance) by using UNION ALL.
    Chris

  • I want to design some products for resale and I want to know if I can use the included Fonts

    I want to design some products for resale and I want to know if I can use the included Photoshop Fonts and Images or do I have to pay additional licensing fees?  Very new to this and just looking for some basic information or a link to specifics.  Most of what I'm searching for brings up content for publishing and I'm really looking for information about reselling items in a product line.  For example Greeting Cards, Signs etc...  Thanks so much!

    As for fonts, you don't need to do anything as long as you don't try to sell the actual font files. In print or the screen your fine to do as you want. Most fonts include a license EULA for you to read when installing them anyway.
    As for images, that may be a different story, it will depend on the image. If there is a file that accompanies the image that states you can do as you please, that fine, but other wise, assume the image is copyrighted and require permission to use.
    Some programs provide clipart that is for public use this clicpart can be printed and sold. But as with the fonts, you can not sell the clipart files themselves.
    In the EULA that accompanies the software, it should state what can be done with any clipart or fonts that are included with the software.
    If you are still in doubt, contact the company and verify it.

  • How can I do a dynamic include of a page fragment?

    I have a technical support website with a lot of simple html pages. What I want to do is hyperlink from the index page to another page, which would display these html pages as a page fragment, dynamically based on a session bean set by the hyperlink.
    I basically want to do this, if it was possible:
    <jsp:directive.include file="#{SessionBean1.pageToDisplay}"/>
    Now the FAQ's has a topic "How can I do a dynamic include of a page fragment?", which would seem to answer my question.
    But this is all it says, and it makes no sense to me. Could someone please translate? :)
    "Using a page fragment file (but using instead of the usual Creator approach) will accomplish a dynamic include."

    Here is 1 solution:
    First add this to the jsp:root tag:
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    Then surround the page fragment directive with something like this:
                            <div style="position: absolute; left: 24px; top: 408px">
                                <c:if test="${SessionBean1.count > 0}">
                                    <jsp:directive.include file="testPF.jspf"/>
                                </c:if>
                            </div>

  • I am in Greece, do i need a power converter or can i just use a plug adaptor to charge my macbook pro?

    I am in Greece, do i need a power converter or can i just use a plug adaptor to charge my macbook pro?

    If you are using the included Apple charger, you will simply need a plug adapter.

  • IWork 08 Pages "The media file can't be used because it's corrupt"

    I am creating a school Yearbook - lots of photos. Pages has been running really slowly and to add to my problems when I reopened my pages document, most of the pictures on the pages I worked on have been replaced by grey blocks with a question mark in it. I am not able to replace the grey blocks with the pictures that used to be in there as it gives me the error message "The media file can’t be used because it’s corrupt". However, the photos work perfectly well in other Pages documents and other programs such as preview, word and so on...
    I am finding the whole experience of working on Pages very demoralizing. Any help out there?

    Hi naglechocolate
    Welcome to the forum.
    Pages is far from a professional DTP program and when you get down to some real world tasks does show more than a few rough edges.
    I suspect you may have just pushed it too hard.
    As Yvan says it includes the whole image in the document, unlike most DTP programs which work with links. So I would concentrate on not making those images too large.
    With a school yearbook, the photos are usually one or 2 standard sizes and need to be printed at a finished resolution of 300dpi, so you can crop and size them before you import them to be most efficient.
    *Preview .app* will do this for you for free but there are also 3rd part utilities that can make a much a set workflow out of this often tedious process.
    Look here: http://www.macupdate.com
    Peter

  • Problems faced when using xsl:include and extension functions

    I am Working in XML and XSLT using Oracle's XML Parser V2.
    Previously i had worked in Microsoft technology using MSXMLParser.
    I am facing some problems in XSLT. They are as below...
    1. Using <xsl-include href="Somexsl.xsl">
    the oraclexmlparser processor is giving the error : XSL-1002: Error while processing include XSL file (no protocol: Submenu.xsl).
    * Can u tell me why i am getting this error, and what is the fix for this.
    The same case with <xsl:import> too.
    2. In case i have to write some functions in the previous WD of xsl i used these statements
    <?xml version='1.0'?>
    <!DOCTYPE PageRoot SYSTEM "../../Common/dtd/PageNavBar.dtd">
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/TR/WD-xsl"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    result-ns="">
    <xsl:script xmlns:xsl="uri:xsl"><![CDATA[
    var strWebContentPath = "/SurSITE/Content/";
    var strWebImagePath = "/SurSITE/sursitegraphics/";
    function IncScript()
    return "<script language='javascript' src='/SurSITE/Includes/avalidations.js'></script>";
    ]]>
    </xsl:script>
    To call the function i used this
    <xsl:eval no-entities='true'> IncScript();</xsl:eval>
    * Can u tell me how do i do this now, i tried with the code above using the current name space (<xsl:stylesheet version="1.1"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />)
    Please use the example given above.
    I will be very greatfull to u if u can give me some suggestion or help for the above said problems.
    Thanking you and eagerly waiting for your reply(s).
    null

    The current version is "1.0" not "1.1"
    You haven't included the code for what your <xsl:include>
    statement looks like, which seems to be what it's complaining
    about...
    XSLT 1.0 has no <xsl:eval>, this is a microsoft specific tag
    from a pre-XSLT-1.0 version.
    XSLT 1.0 has no <xsl:script> element either.

  • How to use ABAP include in SLT parameter

    Hi Frzz,
    Could some one guide me how to use ABAP include in SLT parameter to perform calculations.
    Best Regards,
    Krishna.

    Hi,
    We can have ABAP includes within SLT advanced replicaiton settings.
    Go to IUUC_REPL_CONTENT select the applicable schema configuration name.click on "Select Configuration" button.
    you could see all the tables that are in replication.
    select the required table and then click on "edit settings for selected tables".
    in the next screen select "IUUC_***_RUL_MAP" tab . here we hve the option to insert line of code or abap include as per the requriement.
    please refer the techincal manual of SLT as well for more detailed information on advanced replicaitons within SLT.
    Thank you.
    Shishupal

  • I downloaded Mozilla when I first got my Mac.Is it a better than Safari?I tried Safari and I did not care for it. So can I still use cmd t or cmd n for opening multiple sites?

    I downloaded Mozilla firefox when I first got my mac as I did not like safari.Thah being said,which is better? and lastly can I still use cmd t or cmd with firefox for opening multiple sites? Thanks,Ralph

    You need to visit this page and learn all about Firefox's awesome features, don't ignore the add-ons, toolbar>customize or persona's they really personalize Firefox.
    http://www.mozilla.org/en-US/firefox/central/
    Also you need to make sure your browser plugins are current for your whole machine, Safari included.
    http://www.mozilla.org/en-US/plugincheck/
    I hope one day Apple will make Safari as awesome as Firefox and allow the choice it has, but not today.

  • Problem using jsp:include from inside a custom tag

    Hi, All !
              I have a problem using <jsp:include> from inside a custom tag. Exception is:
              "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              could not do this. Is it a bug, since in the 1.1 spec is said: "The
              BodyContent is a subclass of JspWriter that can be used to process body
              evaluations so they can retrieved later on."
              My code is:
              <wfmklist:items>
              <jsp:include page="item.jsp" flush="true"/>
              </wfmklist:items>
              

    This is an area of contention with WL. It is not so tolerant with regards to
              the spec. I spent several days recently trying to convince it to accept the
              specification in regards to bodies and includes and it appears to have
              successfully rebuffed my efforts.
              Frankly, this is very disappointing. It appears that some shortcuts were
              taken on the way to JSP 1.1 support, and the result is a very hard-coded,
              inflexible implementation. As I have not seen the implementation myself, I
              hate to assume this, however one could posit that the term "interface" was a
              foreign concept during the implementation, other than as some annoying
              intermediary reference requiring an immediate cast to a specific Weblogic
              class, which in turn is apparently required to be final or have many final
              methods, as if being optimized for a JDK 1.02 JIT.
              I am sorry that I don't have any positive suggestions other than to use a
              URL object to come back in an execute the necessary "include" directly. You
              lose all context (other than session) and that can cause its own problems.
              However, you can generally get the URL approach to work, and you will
              hopefully avoid further frustration.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol: How Weblogic applications are customized
              "Denis" <[email protected]> wrote in message
              news:[email protected]...
              > Hi, All !
              > I have a problem using <jsp:include> from inside a custom tag. Exception
              is:
              > "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              >
              > Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              > could not do this. Is it a bug, since in the 1.1 spec is said: "The
              > BodyContent is a subclass of JspWriter that can be used to process body
              > evaluations so they can retrieved later on."
              >
              > My code is:
              > ...
              > <wfmklist:items>
              > <jsp:include page="item.jsp" flush="true"/>
              > </wfmklist:items>
              > ...
              

  • Using jsp:include in jsf

    I want to include a jsp page in another jsp page. My code is as follows:
    1)
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    version="2.0">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Page Title</title>
    </head>
    <body>
    <f:subview id="sub">
    <jsp:include page="/demo.jsp"/>
    </f:subview>
    </body>
    </html>
    </jsp:root>
    2) demo.jsp is given below
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    version="2.0">
    <ui:composition>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Page Title</title>
    </head>
    <body>
    <h:outputText value="Hello"/>
    </body>
    </html>
    </ui:composition>
    </jsp:root>
    but when i run this application i get error as follows:
    javax.servlet.ServletException: @15,48 <jsp:include> Tag Library supports namespace: http://java.sun.com/JSP/Page, but no tag was defined for name: include
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)

    You're mixing two view technologies with each other: JSP and Facelets. You cannot do that. Use the one or the other. In Facelets you can just use <ui:include>. Leave all of those legacy <jsp> tags out when using Facelets.
    By the way, although the <f:subview> is superfluous in Facelets and only used in JSP, I wanted to tell you, this tag is better to be placed in the include file, not in the parent file. Otherwise you may risk "duplicate component ID" problems.

  • Can I still use Appleworks 6.2.9 with Mac Mini 2012?

    Can I still use Appleworks 6.2.9 with Mac Mini 2012?

    Yes, MlchaelLAX, the KVM switch allow one to use one monitor, one keyboard, and one mouse between two computers.  It has been so long that I'm not sure how to find the MODELS to the G4 and G5. Unless you mean what makes the Mac tick.  The G5 is a dual 2GHz PowerPC, with 2 GB DDR SDRAM.  The G4 is a bit slower, will look tomorrow.
    I want/need a newer Mac model because unlike the days before OS X, all software was included as the newer OS were added, not so today.  I'm still using Tiger because I still use a couple programs from the old days.  When I eventually purchase a new model, I will have to buy all new software.  That's find if one has plenty of money and wants to learn everything from scratch, but I'm hanging on as long as I can.
    I tried TenFourFox, but it didn't allow video, of course since I tried Michael's suggestion, the video might not be an issue.  So far, every thing works the way it should. 
    I have a lot of faith in Mac users, their loyalties to Apple is what kept Apple floating when many thought it would sink.  These folks are survivors; I only wish the apple people on the top appreciated that loyalty today, but I guess things are too good.
    Thanks to all for you kindness.  Tomorrow I will show my husband how to remove his yellow threat on his G4.  If anyone can answer any other questions, please know I will keep viewing this post.
    Patt

  • HT4718 My copy of Lion is damaged and can't be used for reinstallation, what can i do?

    when I launch Lion Recovery and try to reinstall the OS, there is a message that says that my copy of lion is damaged and can't be used for reinstallation. what can I do?

    Sorry but that makes no sense.
    The Lion install files are not stored on your computer so they can't be damaged. When using the Lion Recovery HD and you want to Re-Install Lion the install files are downloaded from the internet before the actual install begins.
    If at one time you saved the Lion install files, secifically the InstallESD.DMG, and created your own Lion Install USB thumb drive and that is what you are booting from then this same type of thing has happened to me.
    If you can't boot to the current Lion install, or you wiped your hard drive, you can try booting to the included Recovery HD and then download and install Lion or try the Online Internet Recovery HD system by holding down the Command+r keys OR the Command+Option+r keys when starting the system. One of those keyboard combos will take you to the online Lion Recovery system where you can download and install Lion.

  • Using php include for password protection

    Hi all, and as usual I am also new to RH. I am running a
    password protection site using php include.
    I have published my WebHelp project but was trying to change
    the htm file to php and include the php include and I keep
    receiving this error - "whlstt0.htm was not found on this server."
    I have done a search and can not find any direction. Has
    anyone an idea of how I can create a default php file the will open
    all the frame files needed?
    Thanray

    Hi Thanray. Please try not to cross post in multiple forums.
    It doesn't help others searching for a solution if only one thread
    has been answered.
    Click
    here
    for the other thread.

  • How can I get a PHP include to update automatically after a set date?

    Hi guys,
    I maintain a number of website for sports athletes and on their websites I have an include for their next event - just a small PHP file with when and where the next event is.
    After each event I have to manually update the include to the clients' next event which is a bit of a pain and quite time-consuming.
    Is there any way I can set up the include script to automatically update with a different file to include after a set date?
    Or, even better, can I set up the include itself to display the updated content after a specific date?
    This is what the include contains...
    <img class="event" src="/images/eventPicture.png" />
    <p class="nextEvent">Location<br />
    Series<br />
    1-3 January 2013</p>
    Thank you very much and I hope to hear from you!
    SM

    Its easier than setting up a database...I've been dabbling. You will still need to use server-side language like php.
    First establish the date by adding the get date function to the page:
    <?php
    $date = date('d-F-Y');
    ?>
    Then add the below bit of php in the position where you want the 'include' to appear. (so if on the 19th of April you want event_3.php to appear:
    <?php
    if ($date == "19-April-2013") { ?>
    <?php include ('event_3.php')?>
    <?php } ?>
    This isnt economical for many event dates but if you have a few it will do as a solution.
    It's not great because you would need to add as below, changing the include on the date you want it to show which will replace the previous event.
    <?php
    if ($date == "19-April-2013") { ?>
    <?php include ('event_3.php')?>
    <?php } ?>
    <?php
    if ($date == "30-May-2013") { ?>
    <?php include ('event_4.php')?>
    <?php } ?>
    <?php
    if ($date == "4-June-2013") { ?>
    <?php include ('event_5.php')?>
    <?php } ?>

Maybe you are looking for

  • Fields are getting truncated

    Hi, I am doing re-development,while doing data loading I am getting some fields value truncated but as i had checked the transfer rule and update rules are all mapped correct and the field lengh is also correct . Like our Company Code is 1000 and in

  • Satellite Pro U400-G13 - "C++ Runtime Error" on startup

    Hey Toshiba Forum Users I just bought a Satellite Pro U400-G13 I powered it up and the auto install startet Windows Vista. The computer restartet. After reboot a toshiba program starts up and requested a reboot more. After that I have a "C + + Runtim

  • Video quicktime plug-in not founded but is allready installed

    Hi. My browsers are not founding video/quicktime plug in. QuickTime is installed. I'd check the MIME setting for quicktime video plug-in and is checked. BUT, at the description above is writed 'vídeo/quicktime' instead 'video/quicktime'. Some genius

  • How to identify offseting account

    Dear friends i am creating zreport in which i have some query related to offsetting account. please find some details. while viewing GL account in FBL3N , we found different document numbers aginst these document number there is an offsetting account

  • Is there a VI for controlling the integration time of a Keithley 2000?

    Dear All, I want to do some voltage noise measurements using a Keithley 2000, by taking a fixed number of data at different integration times of the A/D converter (different rates). Can you kindly tell me if there is a VI, which would do this for me