1. Splunk Enterprise Search Manual (Version 9.2.1): In the "Write better searches" chapter, the "Search optimization tips" section states, "Filter as early as possible. The earlier you filter out events in your search, the faster your search will run. This is because the search has less data to process through the pipeline." The dedup command is a filtering command that removes events. (See Chapter: Write better searches, Section: Search optimization tips).
2. Splunk Education: Splunk Fundamentals 1 (Courseware): This official course teaches that the search pipeline processes data from left to right. Commands that reduce the number of results, such as dedup, should be used as early as possible to improve performance for all downstream commands. (See Module 6: Filtering and Formatting Results).
3. Splunk Enterprise Search Reference (Version 9.2.1): The documentation for the sort command notes that it can be a performance-intensive command, especially on large datasets. Conversely, the documentation for dedup describes its function as removing duplicate events, which is a key data reduction technique. (See Command descriptions for dedup and sort).