79587425

Date: 2025-04-22 20:59:26
Score: 2
Natty:
Report link

db.[collection].find({ _id: {$gte: ObjectId(Math.floor(Date.now() / 1000) - 14 * 24 * 60 * 60)}})

postgresql

ALTER SYSTEM SET track_commit_timestamp = on;

select * from [table]

WHERE pg_xact_commit_timestamp(xmin) >= NOW() - INTERVAL '2 weeks';

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: drobzhik