阅读" 导入android.support无法解析 "我可以看到我需要一个名为的文件android-support-v4.jar.阅读http://developer.android.com/tools/support-library/setup.html我可以看到我需要SDK Manager.但是我在哪里可以获得该文件?
当尝试将大发票转换为 PDF 时,我收到“TimeoutError: waiting for Page.printToPDF failed”:
Run Code Online (Sandbox Code Playgroud)Unhandled Rejection at: Promise Promise { <rejected> TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26) at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49) at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37) at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) } reason: TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26) at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49) at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37) at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20...
如何增加超时时间?
我继承了一个具有大得离谱的 TOAST 表的系统的维护工作。对于大约 400 MB 的表和索引大小,toast 为 631 GB。
clientportal=# SELECT oid, table_schema, table_name,
total_bytes,
pg_size_pretty(total_bytes) AS total
, pg_size_pretty(index_bytes) AS INDEX
, pg_size_pretty(toast_bytes) AS toast
, pg_size_pretty(table_bytes) AS TABLE
FROM (
SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes FROM (
SELECT c.oid,nspname AS table_schema, relname AS TABLE_NAME
, c.reltuples AS row_estimate
, pg_total_relation_size(c.oid) AS total_bytes
, pg_indexes_size(c.oid) AS index_bytes
, pg_total_relation_size(reltoastrelid) AS toast_bytes
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE relkind = 'r'
) a …Run Code Online (Sandbox Code Playgroud)