// Ensure you import DataPowersimport { DataPowers, CollectionType, CollectionExpirationMode } from"@andi/powers";
type FiSkillLog = {
data: string;
};
const skillLogs = await DataPowers.getOrCreateCollection<FiSkillLog>(CollectionType.Dictionary, "log", { expiry: { expireMode: CollectionExpirationMode.Never } });
// Sometimes the logs may grow beyond what's performant to load all at once in memory. Use an async iterator to process each log, line by lineforawait (const log of skillLogs) {
// granular processing
}
In UTC.