Some SQL Interface fixes... #1697
gitcodehelp
started this conversation in
General
Replies: 1 comment 1 reply
-
There are two arguments you can pass to cron.py at the command line to export media, either maint_db_dump_dbfs_base64 (which outputs the dbfs table with base64 encoded contents), or maint_db_dump_dbfs_files which dumps the media as files to /tmp/dump_dbfs_files
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For Settings > SQL Interface > Export, a menu option 'SQL dump of media' is missing for
main.py: sql_dump mode == "dumpsqlmedia"
INSERT queries made via the SQL Interface render the cached pk values out-of-date, which can cause 'ID already used' errors the next time the program does an insert using get_id_cache_pk. For self-hosted ASM, I can clear memcache via the server command line, but for web-hosted this has to be done in the source.
So, in main.py: exec_sql/exec_sql_from_file, can we add something like:
if Execute/Execute Script did inserts, then (after the script is done) do:
For good measure, perhaps this cache clearing should also be done in asm3.dbupdate.reset_db ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions