Skip to main content
added 5 characters in body
Source Link
Davislor
  • 1.6k
  • 11
  • 14

If you’re keeping the updates intoin a SQLite backend anyway, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it.

Example of using SQL to find new additions to a table: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables

If a field in your DB stores the date of the transaction, you could just query all users who have had transactions in the past 18 months. Then the archive is just the full DB. Alternatively, you could query all users who haven’t, extract their data, then drop them. Updates are just any rows timestamped this week.

If you’re keeping the updates into a SQLite backend, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it.

Example of using SQL to find new additions to a table: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables

If a field in your DB stores the date of the transaction, you could just query all users who have had transactions in the past 18 months. Then the archive is just the full DB. Alternatively, you could query all users who haven’t, extract their data, then drop them. Updates are just any rows timestamped this week.

If you’re keeping the updates in a SQLite backend anyway, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it.

Example of using SQL to find new additions to a table: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables

If a field in your DB stores the date of the transaction, you could just query all users who have had transactions in the past 18 months. Then the archive is just the full DB. Alternatively, you could query all users who haven’t, extract their data, then drop them. Updates are just any rows timestamped this week.

added 256 characters in body
Source Link
Davislor
  • 1.6k
  • 11
  • 14

If you’re keeping the updates into a SQLite backend, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it. (Example

Example of using SQL to find differences between two tablesnew additions to a table: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables)

If a field in your DB stores the date of the transaction, you could just query all users who have had transactions in the past 18 months. Then the archive is just the full DB. Alternatively, you could query all users who haven’t, extract their data, then drop them. Updates are just any rows timestamped this week.

If you’re keeping the updates into a SQLite backend, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it. (Example of using SQL to find differences between two tables: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables)

If you’re keeping the updates into a SQLite backend, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it.

Example of using SQL to find new additions to a table: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables

If a field in your DB stores the date of the transaction, you could just query all users who have had transactions in the past 18 months. Then the archive is just the full DB. Alternatively, you could query all users who haven’t, extract their data, then drop them. Updates are just any rows timestamped this week.

Post Undeleted by Davislor
added 256 characters in body
Source Link
Davislor
  • 1.6k
  • 11
  • 14

Mistakenly postedIf you’re keeping the answerupdates into a SQLite backend, you could turn the weekly update into a new table and compare it to another question in this window. Deletedthe archived data with queries, before merging it. (Example of using SQL to find differences between two tables: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables)

Mistakenly posted the answer to another question in this window. Deleted.

If you’re keeping the updates into a SQLite backend, you could turn the weekly update into a new table and compare it to the archived data with queries, before merging it. (Example of using SQL to find differences between two tables: https://stackoverflow.com/questions/2077807/sql-query-to-return-differences-between-two-tables)

deleted 3149 characters in body
Source Link
Davislor
  • 1.6k
  • 11
  • 14
Loading
Post Deleted by Davislor
Source Link
Davislor
  • 1.6k
  • 11
  • 14
Loading