Back

Attribute Limit Exceeded - Again ;-)

  • 0
  • Databases
  • Self Hosted
wizardofOz
10 Sep, 2024, 07:39

Hi @all, I migrated a table with around 50 attributes from MySQL to Supabase and like to migrate that to appwrite now.

My freelancer managed to create that collection somehow in the past, but I have no clue how he did that.

Now I need to adjust some sizes.

I am running in this annoying error "Attribute Limit Exceeded".

I can not even recreate the collection the freelancer did before. Not with the WebUI nor with the Python SDK.

I found a post from last year telling something about VARCHAR and TEXT, but appwrite only has the string type (beside URL, Email ....) But not string or text or some sort. So I do not understood how this can be helpful.

The MariaDB should be able to handle that table because I could create it on MySQL 5.5 InnoDB before.

So what can I do? Is there some sort of hack that my freelancer used or maybe some official way of creating the collection?

TL;DR
Developers faced attribute limit exceeded error while working on attribute sizes in a project. After some discussion, they figured out that setting long string fields to TEXT and adjusting attribute sizes can solve the issue. They also shared insights into optimizing the database schema for efficient querying. Additionally, developers discussed the limits and conversion of attributes to int or float types to manage space effectively.
Joshi
10 Sep, 2024, 15:56
TypeScript
 - width: string (Größe: 111111)
 - length: string (Größe: 111111)```
can be stored as int, no?
Joshi
10 Sep, 2024, 15:56

How you wanna query them?

wizardofOz
10 Sep, 2024, 15:57

That was only, because I could not even add a float attribute. So I assume that he tried to made it this way.

After 19 attributes I can not even add another one. So setting all other values to 111111 made it worked at least with TEXT. Otherwise no add attribute could be added.

wizardofOz
10 Sep, 2024, 15:58

Sorry for that bad english grammar. I hope you understood what I meant 😄

Joshi
10 Sep, 2024, 15:58

Don't worry I do.

Joshi
10 Sep, 2024, 15:59

I would just clean them all up before storing them. I know it's a pain in the arse but you will thank yourself later.

wizardofOz
10 Sep, 2024, 16:02

With your support I now have the key to set long string fields to TEXT, so that space is freed to add smaller attributes. So now it would make sense to clean the schema. Before that I could not add all attributes. The best way is that I now understand how that is handled with appwrite and having a switch to go from VARCHAR to TEXT.

Thanks again for your support and you too @Steven

D5
11 Sep, 2024, 21:45

Is this solved then?

DandelionWine
29 Oct, 2024, 21:47

hold onnnn no hahahaha

DandelionWine
29 Oct, 2024, 21:47

I have the same problem, but with less columns

D5
29 Oct, 2024, 21:57

Do you really need that many columns?

DandelionWine
29 Oct, 2024, 21:57

Hahahaha, I just want to add in many photos, should I just build another collection then and call from that?

But that calls for deeper development

DandelionWine
29 Oct, 2024, 21:58

maaannnn lol is it impossible to get more columns?

DandelionWine
29 Oct, 2024, 21:58

How many collections can we have?

D5
29 Oct, 2024, 21:58

I recommend creating a new post and explain your specific use case, as it really depends on what you're building 😅

Joshi
29 Oct, 2024, 21:58

What is the size of each attribute

D5
29 Oct, 2024, 21:58

I don't think there's a limit, but I also don't think you will need to have a lots of collections?

DandelionWine
29 Oct, 2024, 21:59

I will send right now

DandelionWine
29 Oct, 2024, 21:59

Well my "title" is 2200

DandelionWine
29 Oct, 2024, 21:59

Sooooo

DandelionWine
29 Oct, 2024, 22:00

hmmm could it be that some of these are too big?

DandelionWine
29 Oct, 2024, 22:00

Is there a limited quota

D5
29 Oct, 2024, 22:00

Continuing in the new post

Joshi
29 Oct, 2024, 22:00

Just tell me the size of each attribute and keep your message compact

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more