Alex Taylor Posted October 22, 2013 Posted October 22, 2013 I've been working on optimizing a complex part of a solution that relied on the List() function to send multiple parameters to a custom function. Through my research I came across this article: http://www.teamdf.com/weetbicks/the-search-for-fast-aggregates--trial--error/99/ This article discusses the fact that when you use List(), Sum() or other aggregate functions, FileMaker sends the entire record set to the client, not just the data from the requested field(s). Does anyone know if this is also the case with ExecuteSQL()? I would assume that an SQL query would only return the requested data, but I'd like to know if this is definitely happening or not.
Priyabrata Posted October 24, 2013 Posted October 24, 2013 Hi, For you question regarding the SQL result in filemaker. Your assumption is correct. The ExecuteSQL function would only return the list of values for the fields requested in its query. Regards Priyabrata Sahoo Mindfire Solutions, India
Charity Posted October 24, 2013 Posted October 24, 2013 "FileMaker sends the entire record set to the client, not just the data from the requested field(s). " wow. then ExecuteSQL would be faster because it would have far less to download I think. Another plus for SQL.
Alex Taylor Posted October 24, 2013 Author Posted October 24, 2013 Indeed. That was my hope! Thanks for the clarification, Priyabrata.
David Jondreau Posted October 24, 2013 Posted October 24, 2013 I don't think the answer given is correct. Or is, at least, being misinterpreted. In general, if FileMaker is getting the value from a field of one record, it is getting all the data for that record, there are some exceptions (container fields), but those exceptions are not based on the function used to access the record. ExecuteSQL() is no different than List() in this regard. If you run some tests and find out differently, I'd be very interested in knowing. 1
Priyabrata Posted October 25, 2013 Posted October 25, 2013 Hi David, You are correct mate, I only clarified that the ExecuteSQL() works as they wanted. The list also works the same and i didn't deny it. So i think we both are right. Thanks
Recommended Posts
This topic is 4427 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now