<div>
                    without knowing the table structure and links between the tables not much sense. Probably the best thing to do is putting the db somewhere available and post a download link.
                </div><div><br></div><div>regards</div>
                <div><div><br></div><div>-- </div><div>Bart Pietercil</div><div>CTO Cognosis NV</div><div>Dorpstraat 28</div><div>3560 Lummen<br></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Thursday 17 May 2012 at 19:07, william humphrey wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>I have this query
<div><br></div><div><div>SELECT distinct t_family_name,t_given_name,p_description,v_shipID, tripulantes.tripulanteID FROM tripulantes </div><div>LEFT JOIN linktripulantes on Link_tripulantes_linktripulantes</div><div>LEFT JOIN  positions ON Link_positions_tripulantes </div>
<div>left join voyages on linktripulantes.voyageID = voyages.voyageID</div><div>WHERE v_shipID = '150' AND tripulantes.t_pax <> '1';</div></div><div><br></div><div>It is on about 4000 records and I don't know enough about SQL and Valentina to make a link for the "linktripulantes" which is a link table itself that was brought in from when this database was converted from SQLite to Valentina</div>
<div><br></div><div>This query takes 1 minute 15 seconds timed with my stop watch. It takes about 1 minute 20 seconds. It took longer than that until I converted some of the text fields to varchar. </div><div><br></div><div>
But what I'm reporting is that the Query time shown is vStudio is 321 milliseconds.  I just wish that were true.</div><div><br></div><div>Anyone have any suggestions for me to try to speed this thing up?</div>
</div><div><div>_______________________________________________</div><div>Valentina-beta mailing list</div><div><a href="mailto:Valentina-beta@lists.macserve.net">Valentina-beta@lists.macserve.net</a></div><div><a href="http://lists.macserve.net/mailman/listinfo/valentina-beta">http://lists.macserve.net/mailman/listinfo/valentina-beta</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>