Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a code migration guide from v3 to v4 #51

Open
CaptainDario opened this issue Apr 10, 2024 · 2 comments
Open

Add a code migration guide from v3 to v4 #51

CaptainDario opened this issue Apr 10, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@CaptainDario
Copy link

CaptainDario commented Apr 10, 2024

Thank you again for this great effort!
I am trying to migrate from v3 to v4 but I am having quite some problems. As I could not find a migration guide I am asking here.

How are Indexes handled now? In the changelog it only states,

Indexes have been simplified

Which does not really help me understand how I can migrate my old code.

For example, index types seem to not be supported anymore. This leads me to the question of how I would migrate code like this @Index(type: IndexType.value).
Also, case sensitivity seems to not be provided anymore like in @Index(type: IndexType.value, caseSensitive: false).

It would also help me immensely if you could explain to me how to migrate where clauses. Because this statement

Where clauses have been removed in favor of automatic index handling

tells me there are none but I used them a lot to fine-tune the performance of my application. This is crucial as I am searching a text database with more than 300.000 entries.

Maybe we could put a migration guide together?

@CaptainDario CaptainDario added the enhancement New feature or request label Apr 10, 2024
@CaptainDario
Copy link
Author

To be clear, I am not asking for automatic migration of an existing database. I would like a guide to migrate my v3 code to v4.

@mrclauss mrclauss changed the title Add a migration guide from v3 to v4 Add a code migration guide from v3 to v4 Apr 11, 2024
@mrclauss mrclauss added the documentation Improvements or additions to documentation label Apr 11, 2024
@MrCsabaToth
Copy link

I checked and thankfully I only use @Index() without typing. But there are no where clauses? I cannot comprehend that. How do you supposed to where then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants