Uh oh!
There was an error while loading. Please reload this page.
Add a function to get the size of a collection/table in bytes. - #272
Conversation
faisalill
commented
May 22, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
abnegate
commented
May 24, 2023
Awesome, nice work!
Please try to dig into this further, we'll need to get all adapters working. How are you running the tests? The Postgres issue is strange for the test suite. For the SQLite issue, try some extra debugging, adding
Awesome, let's add those methods too
Let's address that seperately, it's outside the scope of this PR. Make sure you've merge in the upstream main branch too, a lot of the |
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
faisalill
commented
May 26, 2023
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| SELECT SUM(\"pgsize\") FROM \"dbstat\" WHERE name='{$namespace}_{$name}'; | ||
| "); |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
faisalill
commented
May 29, 2023
@abnegate, |
Uh oh!
There was an error while loading. Please reload this page.
faisalill
commented
May 31, 2023
@abnegate , |
faisalill
commented
Jun 4, 2023
@abnegate , |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
faisalill
commented
Jul 28, 2023
@abnegate Made the changes |
fogelito
commented
Jul 30, 2023
I think we missed the full-text index calculations table size? since there are additional tables. |
fogelito
commented
Jul 30, 2023
looks like the first FT will create 6 table: with 5 additional table: appwrite/fts_00000000000004a9_deleted_cache The second fulltext index for the same table will create only 6 tables |
abnegate
commented
Aug 2, 2023
@fogelito Any ideas how we can count those too? |
abnegate
commented
Aug 7, 2023
@faisalill Please add another test that:
|
@abnegate |
faisalill
commented
Aug 10, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

What's Changed:
Added
getCollectionSizemethod to MariaDB, MySQL, SQLite and MongoDB adapters.The function for Postgres is working but it is giving an error during test so I just commented the code out.
Tests:
I have checked manually using the
getCollectionSizemethod it worked.I did add a test to check whether it returns a string.