Jump to content
Server Maintenance This Week. ×

Performance: ExecuteSQL() versus List()


This topic is 3842 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

"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. 

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

This topic is 3842 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.