Database Connection with 2 tables - slooowww - InfoPath Dev
in

InfoPath Dev

Database Connection with 2 tables - slooowww

Last post 01-11-2010 05:44 AM by ek38. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-05-2010 11:04 AM

    • ek38
    • Top 200 Contributor
    • Joined on 02-14-2006
    • Posts 54

    Database Connection with 2 tables - slooowww

    We use a form on our WAN.  In one of our plants, our 2 table data connection takes minutes to retrieve 1-4 rows of data.

    PurchaseOrders

               POItems

    The field that links them together is an integer field called PRID

     If I create a new form and search on just PurchaseORders by PRID - 5 second retrieval GREAT

    If I create a new form and search on just POItems by PRID - 5 second retrieval GREAT

    If I use the form where both tables are linked to the MainDataConnection (retrieve and submit), - 3 minutes. BAD

    WE ARE HOPING THERE IS A WAY TO FIX THIS WITHOUT RE-DESIGNING THE FORM.

     

    Filed under:
  • 01-07-2010 03:27 PM In reply to

    Re: Database Connection with 2 tables - slooowww

    What happens if you create a new form with the tables linked? Comparing like to like? I'm wondering if there isn't something else in your form causing the slowness, and that may be a way to start testing.

    Hilary Stoupa

  • 01-08-2010 06:48 AM In reply to

    • ek38
    • Top 200 Contributor
    • Joined on 02-14-2006
    • Posts 54

    Re: Database Connection with 2 tables - slooowww

    Thanks for replying Hilary.

    We did what you suggested.  We created a new form.  Connected to only one table.  Speed was great.  Then we changed the data connection to retrieve from the second table.  Speed was great.  Then we changed the data connection to include both tables and the bottleneck appeard as it does in the regular form.

    Are there any rules like foreign keys have to be defined in SQL Server?  We link the tables when we setup the data connection but foreign keys are not defined.

     Any suggestions are greatly appreciated.

     

    E

  • 01-08-2010 04:00 PM In reply to

    Re: Database Connection with 2 tables - slooowww

    Odd, odd, odd. And in SQL, if you run a query that joins those tables the same way you do in the form, what happens? As far as I know you shouldn't see an issue because you don't have keys defined, but it probably wouldn't hurt anything to add them and see if there is a difference.

    Hilary Stoupa

  • 01-11-2010 05:44 AM In reply to

    • ek38
    • Top 200 Contributor
    • Joined on 02-14-2006
    • Posts 54

    Re: Database Connection with 2 tables - slooowww

    I'm glad someone else thinks it odd too.  When you run the same queries through SQL Management Console...12 seconds over the WAN.  We will try to put in the foreign keys and see if that helps.  I'm doubtful.

     

    Filed under:
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.