sqlinsight-pro/SQL Scripts/_collectors
Søren Eggert Lundsteen Olsen fdaa7e76bf Review 1.4: the AX batch history watermark no longer gets stuck
After the first read, BATCHJOBHISTORY was read from the watermark minus an
overlap of 2000 RecIds with TOP (1000), oldest first. From AX 4.0 RecIds are
handed out per table and are dense, so once 1000 rows existed in the overlap
every read returned the same old rows: the watermark never moved and new runs
were never read again (every AX 2009/2012 installation with more than ~1000
history rows). The read after the watermark now takes the overlap plus 1000
rows (TOP (3000)), so at least 1000 new runs are read each time. Test with
20,000 dense RecIds.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 14:15:49 +02:00
..
ActivityCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AgentJobCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AvailabilityGroupCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AxBatchCollector.sql Review 1.4: the AX batch history watermark no longer gets stuck 2026-10-02 14:15:49 +02:00
AxDatabaseDetector.sql Review 1.4: AX reads put the agent's session settings back 2026-10-02 14:14:24 +02:00
AxSequenceCollector.sql Review 1.4: AX reads put the agent's session settings back 2026-10-02 14:14:24 +02:00
BlockingCollector.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
ConfigurationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
CpuCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
CustomQueryCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
DatabaseCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
DatabaseDiscovery.sql Review 1.4: AX reads put the agent's session settings back 2026-10-02 14:14:24 +02:00
DeadlockCollector.sql Deadlocks: read system_health files without a temp table 2026-10-02 13:47:31 +02:00
ErrorLogCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
FileIoCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
IndexCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
InstanceConfigurationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
InstanceProbe.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
LongOperationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PerformanceCounterCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PermissionCheck.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
PlanAnalysisCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PlanCacheCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PrivilegeCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
QueryStatsCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
QueryStoreCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
ReplicationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
ServerCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
SuspectPageCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
TempdbCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
TraceFlagCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
WaitSamplingCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
WaitStatsCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00