-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weekly Status Log: Caching Project #1
Comments
September 11, 2024
|
September 12, 2024current goal: create a script to collect data on current LRU caching strategy
in order to do this, we first:
side note: need to figure out how to measure latency questions:
|
September 18, 2024what we have:
next steps:
|
September 25thWhat We Have:
What's Next:
|
I think Log queries and log cache should be the same. Also, shouldn't the hit rate be 1 at some cache size? |
Please correct me if I'm wrong, but I think hit rate = number of hit queries / total number of queries. And for example when we are doing the first query, we are guaranteed to miss that query since nothing is in the cache, so I think the hit rate should not be 1.
|
Maybe we should measure the hit rate relative to repeated queries so that 1 == perfect cache. But maybe we should measure both? |
What's next week:
|
November 12, 2024
so many questions about pre-existing record function and it's purpose and why there's multiple recorders |
export async function setDatabaseConnector(type, addLogger) {
let connector;
switch (type) {
case 'socket':
connector = socketConnector();
break;
case 'rest':
connector = restConnector();
break;
case 'rest_https':
connector = restConnector('https://localhost:3000/');
break;
case 'wasm':
connector = wasm || (wasm = wasmConnector());
break;
default:
throw new Error(`Unrecognized connector type: ${type}`);
}
console.log('Database Connector', type);
if (addLogger) {
connector = loggerConnector(connector)
}
coordinator.databaseConnector(connector);
}
export function loggerConnector(connector) {
const logs = [];
return {
snapshot() {
return logs;
},
async query(query) {
const result = await connector.query(query);
logs.push(query, result);
return result;
}
}
}
|
This is for uwdata#385. Code is in https://github.com/cmudig/mosaic/tree/cache.
The text was updated successfully, but these errors were encountered: