cozy / cozy-data-system

Deprecated - Data Layer for Cozy V2 Platform
https://cozy.io
GNU Affero General Public License v3.0
24 stars 21 forks source link

Does every request declaration leads to a query reindexing? #136

Open frankrousseau opened 9 years ago

frankrousseau commented 9 years ago

When I restart my apps, sometimes I notice slowness. I was wondering if redeclaring requests doesn't provoke some useless operations.

jsilvestre commented 9 years ago

I'd like to push a few comments related to that matter. I think we could improve performance by:

I think the declaration itself doesn't involve reindexing, but that we should manage declaration and reindexation carefully by ourselves. Would it be worth asking an expert for help? We know for sure (based on @jacquarg work during the MesInfos project) that reindexing views is triggered by application's requests, resulting in massive slowdown when there are tons of documents.

frankrousseau commented 9 years ago

I think we don't need an expert. Your solution looks good. It's the minimum to implement. Even if we hire a specialist, it will save him/her time.

jsilvestre commented 9 years ago

I agree that we can first try to fix it by ourselves.