"Loading items..." issue
Debug ID: D786458242
I followed the instructions in the Debug Output Logging support article. I'm in a similar situation as this person, but I have a MacBook Air.
I followed the instructions in the Debug Output Logging support article. I'm in a similar situation as this person, but I have a MacBook Air.
return await Zotero.DB.valueQueryAsync('SELECT COUNT(*) FROM itemDataValues') + ' ' + await Zotero.DB.valueQueryAsync('SELECT COUNT(*) FROM itemData') + ' ' + [...await Zotero.DB.queryAsync('PRAGMA index_list("itemData")')].map(x => x.name)
https://s3.amazonaws.com/zotero.org/images/forums/u13382599/sk86lc8wzieb6ur2eqpp.png
Here's the browser console:
https://s3.amazonaws.com/zotero.org/images/forums/u13382599/g23bbxbpxs9t1yr9w3f8.png
Here's the new Debug ID: D1909352363
You should temporarily disable auto-sync from the Sync pane of the Zotero settings, restart Zotero, and let it run for a while — overnight, even. Then try running that line.stat -f%z ~/Zotero/zotero.sqlite ; echo 'SELECT COUNT(*) FROM itemDataValues; PRAGMA index_list("itemData");' | sqlite3 ~/Zotero/zotero.sqlite
782208
0|itemData_valueID|0|c|0
1|itemData_fieldID|0|c|0
2|sqlite_autoindex_itemData_1|1|pk|0
Separately, I left this group months ago and don't want to keep syncing with it, but if I disable sync in my settings, will that disable syncing with my RSS feeds?
https://s3.amazonaws.com/zotero.org/images/forums/u13382599/qjsk3tgmm6rk5op4ppmf.png
echo "SELECT COUNT(*) FROM items JOIN libraries USING (libraryID) WHERE type!='feed'; SELECT COUNT(*) FROM items JOIN libraries USING (libraryID) WHERE type='feed';" | sqlite3 ~/Zotero/zotero.sqlite
And then you can try this:
time echo "DELETE FROM itemDataValues WHERE valueID NOT IN (SELECT valueID FROM itemData);" | sqlite3 ~/Zotero/zotero.sqlite
This is the command that's slow within Zotero, so this might take a while to run. When it finishes, let us know the output (which will say how long it ran for).
Then open Zotero and see if the problem is fixed.
Finally, close Zotero again and run this:
echo "VACUUM;" | sqlite3 ~/Zotero/zotero.sqlite
After that, let us know the new size of zotero.sqlite.