Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AbubakarWebDev authored Jul 8, 2024
1 parent 602d3f7 commit e7a1bf0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ This detail outlines the challenges and limitations encountered when implementin

### 1. Babel Configuration Issues

WatermelonDB requires custom Babel configuration, which presents challenges when used with Next.js:
WatermelonDB requires a custom Babel configuration, which presents challenges when used with Next.js:

- Simple React apps using Babel for compilation can easily accommodate WatermelonDB.
- Next.js uses the SWC compiler by default for optimized builds.
Expand All @@ -97,13 +97,17 @@ WatermelonDB doesn't fully leverage IndexedDB's capabilities:

- Primarily supports string number and boolean datatypes only even though indexed db supports any datatype.
- Limited diversity in efficiently storable data types.
- Watermelon DB stores all your data as a single serialized string.
- Watermelon DB (Loki JS Adapter) stores all your data as a single serialized string against one key setup by them.

#### c. Indexing Underutilization

- Doesn't fully utilize IndexedDB's indexing features.
- May impact query performance.

#### d. TypeScript Support
- There are a lot of places where you will see the types are not correctly inferred as they should be.
- Also there are some places where behind-the-scenes implementations used Typescript "any" to make things work instead of accurate type information.

## Conclusion

These limitations may affect the overall performance and flexibility of applications using WatermelonDB with Next.js, especially for projects requiring advanced data storage and retrieval capabilities.
Expand Down

0 comments on commit e7a1bf0

Please sign in to comment.