<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 Jul 2015 12:08:53 Z</lastBuildDate><pubDate>15 Jul 2015 22:25:00 Z</pubDate><description>Hi. These days I'm trying to speedup my data searches reducing the access to my server side MySql DB and increasing the memory workload on client side. The goal is to keep the performance as possible when accessing data outside company lan (on lan queries go like rockets, obviously). When you perform a browsing query you can perform a single query for getting 100/200 items and all their linked data (6/7 linked mysql tables). So 10 queries = 2000 full items... Quite fast anyway even outside lan!&#13;
&#13;
Instead, when you start from a given list of items and the search is one-per-row (you cannot start from a set of items delivered by a filtering query, you have a scattered random items list with maybe nothing in common each other) the performance falls down. 1000 rows = 1000 SELECT queries, doesn't it?&#13;
&#13;
Now I'm going to import from a list (txt) a set of items which compose a provider's catalog. Weekly catalogs often contains only an item code and a price, all the other fields/columns of each item/record have to be filled searching in the "history" of catalogs imported by the company, stored in MySql DB. The match between a "row item" and the "history items" is by item code. You can have N past history records matching the same single row, in case you choose the latest (I semplified, there are more complex criteria).&#13;
&#13;
So I can execute a query for getting the past catalog records of each item/row, applying the needed filters/sorts by sql query in order to get the lastest history match or execute a unique query (that is fast) saving all the past catalog of the provider in a recordset in memory.&#13;
The first option is trivial but slow outside lan (N rows = N queries), the second could allow me to work all the most in memory but it cannot succed in sorting/filtering the resulting data source.&#13;
&#13;
As I read on the forum, a way could be the FileToArray from the data source but having a different item on each imported row I have to pass (FOR EACH) all the array each time to find the match, didn't it? I'm afraid that even using WHERE in FOR EACH you have to scroll all the array (it seems so by seeing the cronostart info).&#13;
I thought even to save the catalog on a local datafile and then execute local queries on that but I'm quite newbie and didn't succeded in creating it. Can you help me to make the best choice in WD for working (sort/filter) on data sources or derived arrays?&#13;
&#13;
Thank you and sorry for being a little verbose in this post.&#13;
Stefano</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp</link><title>Query on a resultset...</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53105/read.awp</comments><pubDate>17 Jul 2015 12:08:53 Z</pubDate><description>Hi again,&#13;
&#13;
another way of improving your results would be to maintain one extra &#13;
file on you sever, a link file between the e…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53105/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53105/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53089/read.awp</comments><pubDate>16 Jul 2015 12:48:00 Z</pubDate><description>Is one of the options, but if you have enough memory the array solution is faster.&#13;
&#13;
The other option is to copy the txt file t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53089/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53089/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53088/read.awp</comments><pubDate>16 Jul 2015 11:41:00 Z</pubDate><description>Ok, thank you. So trying to copy the "history" of the provider X in a local temp datafile and query on that is not an option to …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53088/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53088/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53086/read.awp</comments><pubDate>16 Jul 2015 11:05:00 Z</pubDate><description>You don't need FOR EACH in the array if you use one array of structures you can do a lot with them and they are very fast.&#13;
&#13;
Ju…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53086/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53086/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53083/read.awp</comments><pubDate>15 Jul 2015 23:42:00 Z</pubDate><description>Yes, I think you understood.&#13;
I thought about that for getting in one shot data from items database. The problem is that i sempl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53083/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53083/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53082/read.awp</comments><pubDate>15 Jul 2015 22:51:00 Z</pubDate><description>Hi Stefano,&#13;
&#13;
I'm not sure I followed the whole thing, but I'll try anyway...&#13;
&#13;
What about:&#13;
- you import all your IDs from yo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53082/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset-53082/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53076-query-resultset/read.awp">Query on a resultset...</source><title>Re: Query on a resultset...</title></item></channel></rss>
