XML file slow to load

i have created a Spry Data Set from an xml file with approx. 4700 rows (not 4700 items). The problem is that it takes abourt 4/5 seconds to load when you click on the website. Is there a way i can improve the performance of this.
Also the search function performs slowly in IE but seems ok in firefox.
Can anyone suggest any way to improve the performance?
Many thanks,
Colin

this is the select query code:
mysql_select_db($database_myprojectbrowser, $myprojectbrowser);
$query_product_table = "SELECT projects.project_code, projects.project_name, organisations.orgranisation, projects.date_closed, heirarchy_names.description, 'products_table.php', projects.p_id FROM projects Inner Join organisations ON projects.organisationID = organisations.organisationID Inner Join project_assignments ON projects.p_id = project_assignments.p_id Inner Join heirarchy_names ON project_assignments.heirID = heirarchy_names.heirID WHERE projects.n_name =  'scotwat' GROUP BY projects.p_id ORDER BY organisations.organisationID ASC, projects.project_code ASC ";
$product_table = mysql_query($query_product_table, $myprojectbrowser) or die(mysql_error());
$row_product_table = mysql_fetch_assoc($product_table);
$totalRows_product_table = mysql_num_rows($product_table);
print json_encode($product_table);
as said above, i get an error msg

Similar Messages

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • XML Files Won't Load Into AIR Correctly

    Hi,
    I am having a wierd problem. I am using FB 4.6, and have created a small web project swf file that loads in an xml file and creates a thumbnail gallery. It works fine. When I load this same swf file into my AIR project at runtime, the same xml file will not load correctly into it. Instead, it appears to be loading as gibberish, and the XML parser says it is malformed. I have attached a screen shot of it in the debugger. This is what it looks like after the xml load complete event fires.
    Has anyone seen this issue before?
    thx

    It appears that if I run the generated swf file from the AIR project in the stand alone Flash player, everything works as it should. However, if I run it in AIR using the FB run command, I have the issues mentioned above. What would cause that?

  • XML file error while loading import manager

    Hi all,
    I am new to MDM.
    I have archive repository(.a2a file),xsd files,import maps and export maps.I have unarchived the repository in console and I am trying to load import manager by selecting the file type as XML schema, client system as MDM, XMl schema name and file name as XML file of given XSD in import manager folder of server.
    I am getting error like "failed to parse XML file".
    Please help me out regarding this.
    Thanks in advance.
    Ravi.

    Hi ravi,
    Is it MSXML 4.0 SP2 parser?
    <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en</a>
    Try installing this and let me know.
    Thanks and Regards,
    <b>Sagar Sonje</b>
    Message was edited by:
            Sagar Sonje

  • Loading XML file using sql*loader (10g)

    Hi Everyone....
    I have a major problem. I have a 10g database and I need to use sql loader to load a large XML file into the database. This file contains records for many, many customers. This will be done several times and the number of records will vary. I want to use sql loader and load to a staging table, BUT SPLIT THE RECORDS OUT and add a sequence. I am having 2 problems.
    In the 10g documentation, when you want to split the records you use the BEGINDATA clause and indicate something (like a 0) for each instance of a record. Well my first file has 3,722 records in it. How do I know the number of records in each XML file?
    The second problem is that because this is XML, I thought that I could use ENCLOSED BY. But the start tag has an attribute /counter in it, sql*loader doesnt recognize the starting tag. (i.e.: start tag is: </CustomerRec number=1>
    end tag is: </CustomerRec> )
    So, I used TERMINATED BY '</CustomerRec>'. This will split out the records, but it will NOT include the ending tag of </CustomerRec> and when I use extract, I receive an XML parsing error.
    I have tried to get the ending tag using CONTINUEIF and SKIP. But those options are for "records" and not lines.
    Does anyone have any ideas for the 2 problems above. I am at my wits end and I need to finish this ASAP. Any help would be appreciated.
    Thank you!

    Sorry.... here is an example of what my control file looks like. At the end, I have 92 "0", but remember, I have 3722 records in this first file.
    LOAD DATA (SKIP 1)
    INFILE *
    INTO TABLE RETURN_DATA_STG
    TRUNCATE
    XMLType(xmldata)
    FIELDS
    (fill FILLER CHAR(1),
    loadseq SEQUENCE(MAX,1),
    xmldata LOBFILE (CONSTANT F001AB.XML)
    TERMINATED BY '</ExtractObject>'
    ------ ":xmldata||'</ExtractObject>'"
    BEGINDATA
    0
    0
    0
    0
    0
    0

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Newbie - XML File - How to load data and populate tables

    Hi,
    I'm newbie to XML data handling.
    I have a file that is provided in XML format with data from an external system.
    I need to load data from that file and populate some field in one or more tables.
    I have two options:
    1. Load the XML file directly from OS and populate the tables directly (I'm not sure if this is possible or not)
    2. Load the entire XML file from OS into a CLOB or a BLOB(?) and the select the data form the CLOB and populate my tables.
    I need some guidance about what is possible and how to do it.
    My preferred approach if possible is to load the data directly from OS and populate the target tables without loading into the database previously.
    Thanks for the help.
    Tech Info:
    OS : Unix / Windows
    DB Version: 11.2 or 11.1
    JF

    forum has many examples
    use search
    as example see
    Re: Load xml data in Oracle table
    Re: Load an XML file into table(s)
    Re: load a file

  • Adobe Edge Animation published file slow to load on browser

    Hi
    I had a bad experience with Adobe Edge Animate as when I upload published file to my server it been slow to load the images and sounds, here is the links for the published file I had created at Adobe Edge
    ventureadvertising.net/simon/slider.html
    ventureadvertising.net/Javier/Start/Start.html
    ventureadvertising.net/Eric/responsive/sliderv3.html
    all these links take time to load I had to refresh again to load the file
    Thank you

    Hi Tanya,
    http://forums.adobe.com/message/2816273#2816273 like in this thread i used "On application start interaction" and i slected my swf files to load in application start.But i think nothing has changed.this the web site which i upload after that changes...http://www.fndim.com/altis2/main.html
    I think the problem is, in the preloader my embedded swf files doesnt installing to the browser...i want that everything is intalling with the preloader in the begining.If you want i can send you my fxg file..but i dont know how can i send it to you ?

  • Xml file not getting loaded locally...

    Hi,
    I have created a project and it uses an xml file which I have used in assets folder within the src of the project(The project was created in D:\C Drive\Documents\SAP UX\go_green\wasl_DB\bin-debug). The url path which I have used in HTTPService is :
    <mx:HTTPService id="srv" url="assets/datafile.xml" result="srvResultHandler(event)" fault="srvFaultHandler(event)"/>
    This works fine when I run it through flex, i.e, it gets into srvResultHandler result function. But when I moved the bin-debug folder to some other drive and to some other folder, and when i tried opening the swf file, it fails. It is getting into srvFaultHandler fault function, where I have given a alert message, "Error reading xml file.".
    Can someone please let me know where am I going wrong??? I don't want to run this in any server, I want this to run in 3 desktops locally always.......
    Please help,....
    -Deepak

    add a compiler argument -use-network=false in your project compiler setting:
    - right click on project ( it must be open ), go to properties
    - go to Flex Compiler section.
    - add the above argument in Additional Compiler Arguments box ( you may have -locale en_US already there, put a space after it and paste above one.)
    hope it helps.

  • RE: GETTING AN ERROR WHILE LOADING ACL USING XML FILE

    I have generated several XML files (ACL) to load in the share services but when I do I get the following error message:
    "Errors occured during syncrhonization: [com.hyperion.planning.DuplicateUserException: Another user with the name admin already exists.]."
    I am not sure how to resolve this issue. Any help and/or assistant is greatly appreciate it.
    fsanchez

    Let me take that back. I have one or more user with admin privileges. Here is one of the sample XML files that I created.
    <? xml version = "1.0" encoding = "UTF-8" ?>
    <acls>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>ABN-NW PD</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>@IDESCENDANTS</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Actual</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READ</accessMode>
    <flag>MEMBER</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Balance Sheet</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>@IDESCENDANTS</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Budget</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>MEMBER</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Final</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READ</accessMode>
    <flag>MEMBER</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Income Statement</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>@IDESCENDANTS</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Property Director Budget Process</objectName>
    <objectType>SL_TASKLIST</objectType>
    <accessMode>READ</accessMode>
    <flag>MEMBER</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Property Directors</objectName>
    <objectType>SL_FORMFOLDER</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>@IDESCENDANTS</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Statistical Accounts</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>@IDESCENDANTS</flag>
    <isUser>N</isUser>
    </acl>
    <acl>
    <name>ABN_NW_PD</name>
    <objectName>Working</objectName>
    <objectType>SL_DIMENSION</objectType>
    <accessMode>READWRITE</accessMode>
    <flag>MEMBER</flag>
    <isUser>N</isUser>
    </acl>
    </acls>

  • Loading XML File into Oracle 10G XE

    I am trying to load an XML file into 10G XE from the Utilities interface, I have created a Table to load into but when I try to load I get the following cryptic error "XML Load Error". There is no other information, can someone give me some insight where to start to resolve this problem?

    The error messages when importing fails provided by APEX 2.1 are not very useful as they do not provide any clue...
    If possible, you can try to load XML file with SQL*Loader - probably you will get then more useful error messages.

  • Loading multiple XML files into one XMLList

    I am working on an app where I will load a list of recipes.  Each recipe is an XML file.  I would have an XML file that lists the filenames that need to be loaded.  I am assuming in can use one HTTPService and loop through this list, and set the url and do myService.send() until all the xml files have been loaded and concatenated into one xml list. True?
    My main question here is how do I load each XML file and add it to the same XMLList?
    Assume each XML file's root tag is <recipe>.  I want to create an XMLList with the root  <recipes> with each <recipe> as a first child.
    Thanks.

    Why don't you use the Data centric workflows which will help you to deal with multiple XML files as AS objects? Something like this
    1. Create a HTTPService using Data menu -> Connect to HTTPService
    2. create a operation getRecipe and enter your URL example URL: http://myserver/recipe?name=recipename
    3. Use Configure Return Type to tell that this method returns a Recipe class
    4. Use DataBinding to bind the result of this to a DataGrid
    Call the following in a loop and
    recipeName = myRecipes+ // All of your recipe names, Recipe is a ArrayCollecition
    Recipe.setAt(i) = Svc1.getRecipe(recipeName);
    At the end you would have a Recipe[]
    This is one of the ways you could work instead of having a XMLListCollection and use e4x etc. to go through your collection.
    Let us know if this helps, or you are looking for something else.
    Thanks
    -Sunil

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Load data from XML files into BI

    Hi All,
    Can any one guide me through the steps which involve in loading data from XML files into BI?
    Thanks
    Santosh

    Hi James,
    I have followed upto step No: 12 .
    Please could you let me know how to link the XML file on my local drive to BI,
    I am not able to find figure out where to specify the path of the XML file to be loaded into BI.
    Thanks In Advance
    Regards,
    San
    1. Create a Infosource(ZIS), with transfer structure in accordance with the structure in the XML file. (You can open the XML file with MS Excel.This way you can get to know the structure).
    2. Activate the transfer rules.
    3. After activation ;from the Menu Bar , Select Extras>Create BW Datasource with SOAP connection.
    4.Now Activate the Infosurce again, this creates an XML based Datasource(6AXXX...)
    5.These steps would create two sub nodes under the Infosource(ZIS).
    6.Select Myself system and create a data package and execute it run in Init mode(without Data Transfer).
    7. This would create an entry in RSA7(BW delta Queue)
    8. Again create another Delta Infopackage under it, and run it. Now the Datasource(6AXXXXXX..) would turn green in RSA7.
    9.In Function builder(SE37) select your FM( do a search ,F4, on the datasource 6AXXX....) .
    10.Inside this RFC based FM , from the Menu Bar select Utilities>more Utilities>Create Web services>From Function module.
    11.A wizard will guide you through the next steps .
    12.once this is done a Web serrvice would be enabled in WSADMIN. Select your FM and execute it.
    13.From here you can upload the data from XML file into BW delta queue.
    Edited by: Santosh on Nov 30, 2008 2:22 PM

  • Load XML file to Oracle 10G XE

    The load xml wizard in Oracle XE asks for a table in the HR schema to load into.
    Well I create one using the 'Create Table' procedure with a script that runs and creates the table. Now I have a XML file that matches the table I created and try to load the file contents into the table. I get an error. Am I surprised? no, I am not. Nothing works the first time.
    Is there a preferred format for the xml file that supports loading into a table?
    There appears to be no help file, but then I may be mistaken.
    Could someone show me where to find this help file?

    The bug you are referencing occurs when an Enumerated Value also has min and max lengths specified..
    Eg something like
    <xsd:simpleType name="EnumType">
         <xsd:annotation>
             <xsd:documentation>ENUM_TYPE</xsd:documentation>
         </xsd:annotation>
         <xsd:restriction base="xsd:string">
             <xsd:enumeration value="AA"/>
             <xsd:enumeration value="AB"/>
             <xsd:enumeration value="AE"/>
             <xsd:enumeration value="AK"/>
             <xsd:enumeration value="AL"/>
         </xsd:restriction>
       </xsd:simpleType>
       <xsd:complexType name="TYPE1">
         <xsd:sequence>
             <xsd:element name="TYPE11">
               <xsd:simpleType>
                   <xsd:restriction base="EnumType">
                     <xsd:minLength value="1"/>
                     <xsd:maxLength value="10"/>
                   </xsd:restriction>
               </xsd:simpleType>
             </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
    </xsd:schema> Do you have something like this in your XML Schema. If this is the case try removing the minLength, maxLength as they are redundant, which is probably why we didn't catch this one in internal testing, it sort of falls into the "if it hurts please don't do it" category :). Also the fix for this bug appears to have been backported on top of 9.2.0.6.0 so upgrading to 9.2.0.7.0 or 9.2.0.8.0 or the later releases of 10.1 or 10.2 should fix the problem.

Maybe you are looking for

  • Duplicate users in accounts list

    I've just migrated my account and all it's data to a new machine using Apples Migration Assistant and everythings working fine, however, I have multiple instances of my account in the Accounts preference pane (22 duplicates). In the Login window I ju

  • Error when creating a new user

    Hi all When I try to create a new user I'm getting an error message Unknown message (ID = LOWERCASE_REQUIRED) I entered all the required fields in the way it was defined and still I get this error. I never had this problem before. Can anyone please h

  • Disk Utility/Migration

    Hi gang, I'm trying to migrate from an OS 10.4.11 Mac to an OS 10.6.4 MacBook. I was unsuccessful with the Migration Assistant, having tried the tips located here @ http://support.apple.com/kb/TS2664, so I'm now trying the last tip wherein I copy the

  • Read Order BOM Changes

    Hi All, How to read/track the order bom changes (CU51)? I want to track all changes made using CU51 for perticular sales order, like component deletion, change in quantity etc. I checked the tables CDHDR and CDPOS but did not get any information. Ple

  • Bridge CS6 does not allow to export pictures anymore

    I am running Bridge CS6 from the Creative Cloud on a Powermac with Mac OSX Lion. With Bridge CS5 I used to convert my Raw files through (German version) Dateien > exportieren in And here – where the old version offered to choose a folder – there is j