code: private Resolved resolve(Record record, ReadConsistency consistency, boolean scheduleCompactionIfPresent) {
          Table table = record.getKey().getTable();
          String key = record.getKey().getKey();
  
          // Resolve the timeline into a flattened object
          Expanded expanded = expand(record, false, consistency);
  
          // Log records with too many uncompacted deltas as a potential performance problem.
          _slowQueryLog.log(table.getName(), key, expanded);
  
          // Are there deltas in this record that we no longer need?  If so, schedule an asynchronous compaction.
          if (scheduleCompactionIfPresent && expanded.getPendingCompaction() != null) {
              compactAsync(table, key, expanded.getPendingCompaction());
          }
  
          return expanded.getResolved();
      }
docs: Resolve a set of changes read from the {@link DataWriterDAO} into a single JSON literal object + metadata.
  If the record can be compacted an asynchronous compaction will be scheduled unless
  scheduleCompactionIfPresent is false.