You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reflexion I think that we need to change how the db is structured to handle the renaming of a table.
Currently, how the DB is structured forces us to duplicate all documents of a given table if we want to rename it.
Time complexity: O(n) and Space complexity O(n) as well.
What I suggest is to break the actual DB schema to save some complexity if we want to rename a table.
That way we can rename a table in a constant time (O(1)) because we only need to change the name of the table in _genji.tables store.
The store allows us to have a reference to the content of the table. We can use an uuid for generating the store value.
This is a sub-issue of #94 that focuses on renaming an existing table.
We should be able to do the following:
If the table
bar
already exists, we should return an error.The text was updated successfully, but these errors were encountered: